difference between Java and C++
Answers
Answered by
1
java is easier than c++
Answered by
2
C++ is compiled to native code, while Java is compiled to bytecode and executed by a virtual machine (JVM). The JVM is really good at optimizing code, so performance of long-running code is often almost as good as with C++, but startup time and performance in the first few moments after startup is worse.Java has some features that makes its runtime characteristics less easy to predict, like automatic memory management and garbage collection (you do not know when and how long the garbage collector will stop your program, or how much of the unused memory it will free). On the other hand, automatic memory management eliminates a whole class of possible programming errors.
sneha428:
thanks for the answer
Similar questions