NetApp Bloomberg LP Interview Question
Financial Software Developers Software Engineer / Developersfor starters, java is strictly object oriented not c++. java is run on interpreters after getting converted to bytecode while c++ creates object files, which then are linked to libraries and finally built into executeable code....
there are many more differences, others are requested to pitch in.
C++
1. Backward compatibility with c
2. Pointers, Templates, Function pointers
3. language for system programming
4. write once compile anywhere.
5. Generates class executables.
6. No automatic garabage collection, explicit memory management thru destructors.
7. Multiple Inheritance
8.supports the goto statement
Java
1.portable
2.write once run anywhere
3.No pointers
4.No backward compatibility with c
5.Garbage Collection, no destructors
6.Generics
7.No function pointers
8.sandboxed secuirty, platform independent
9.methods are virtual by default
1. Java compiles byte code to execute on JVM where as C++ generates machine code.
- Anonymous March 11, 20112. Memory management is automatic in java by garbage collector, manually in C++.
3. Strictly object oriented, C++->object oriented bt support procedure to sm extent.
4. java->operator overloading is not allowed (although there are some default overloading eg string1=string2).