Many places use Cobol, and even more use Windows, too. That people use either doesn't mean Java is the right tool for the job. Any job (maintaining existing code notwithstanding).
Need it OS independent? Use Java.
Contrary to what Oracle's marketing dept says, in the real world even C is more portable.
User interfaces (GUI, WEB you name it) it's great.
I have no experience with Java on a web server, but after trying to use a few GUI programs in Java, sorry, no. It's a major pain in the ass to deploy: every single program needs a specific version of Java with specific configuration oddities, and even then there's no guarantee of success. And if you manage to start the program, expect crashes, ages-long startup, insane memory use, frequent pauses or outright lockups.
It's OK for data processing, but you will need lots of compute resources compared to the same thing in C++.
In other words, it's not OK. I'd understand if it was faster to write in Java than C++ -- after all, we don't use assembly for most tasks despite it being faster -- but you make your compute task being slower for no gain.
Don't like the "hard work" involved in memory management, Use Java and restart often.
Say what? If I wanted required restarts, I'd use Windows. Sorry but "reboot/restart often" is. not. acceptable., period.
It's hard to leak any memory in Perl or Python, and it's a rare thing in C++ unless you're a doofus.