>>10916892Java's "everything is a class" stuff does appeal to some people, but it basically is overhead if you are just trying to get some science work done. java always turns out horrendously verbose too...
the real advantages to java are:
1) the JVM. java code is portable because oracle makes sure to write a JVM that runs on anything
2) the garbage collector. it is harder to write java code that has memory leaks and it automatically does a lot of stuff to make sure things are memory-safe.
3) security. part of how the language is designed (the verbosity, the "everything is a class", and the JVM/oracle support) makes it a really good platform for making sure you won't get hacked
4) Java is more suited to web applications, like e.g. the Java Servlet infrastructure is really good and plugs into Tomcat really nicely. so if you are e.g. writing a code to have a nice web interface, Java gives you some nice features
5) better string manipulations and text IO parsing. doing stuff with strings in c++ is terrible, that's one of the places where python dominates C++. java isn't _as_ good as python for dealing with strings, but it's a lot better than C++. and for text i/o, say CSV or XML or etc., i've found it much better to use java stuff, because there is official in-built JAX and DOM stuff in the java core language, whereas in C++ or python you need to do googling to find the best parser for whatever you're doing, and often they are not as good as the java parsers for those kind of text formats