Bloomberg LP Interview Question
Financial Software DevelopersJava------------------------------------------------------------------------------------C++
1) Memory reclaimed by automatic---------------------| 1) Memory needs to be freed manually
memory management via Garbage Collection------ |
2) Java is both compiled and Interpreted. Source----| 2) C++ is compiled
code is compiled to optimized ByteCode. Bytecode|
is then interpreted by JVM
3) Only JVM needs to be implemented for each type|3) C++ needs a special compiler
of CPU to interpret bytecode-------------------------------| targeted at a certain CPU
4) Invented to solve System portability and web------|4) Invented to tackle the disadvantages
portability issues-----------------------------------------------| of Procedural programming
Java has managed code whereas C++ has unmanaged code.
- Abhishek February 08, 2011