Java has come a loooong way since 1996 ! JRE is pretty standardized now, and in terms of execution speed it’s comparable to C++ and in some cases even slightly better.
I think you were referring to applets earlier, where different versions came over the network and ran on the browser’s JVM. Applets are long gone. Good riddance. They were a real PITA to work with. Today Java exists mostly for server side computing, for which in terms of flexibility, architectural frameworks, integration with third party APIs and packages, available open source tools , it has no equal. Developers have an extremely rich environment to work in. The Java of 2009 is nothing like that of 1996, believe me.
In what cases does java execute faster than C++?
Cuz I aint buying it. Not by a long shot.
The Java of 2009 is fatter and uglier than what I left behind in 2000. It's certainly the last thing I would put on an embedded system. Conversely, the gcc/g++ compilers continue to get better. The code is getting smaller and faster. Exactly what I want in an embedded system.