Commonly Asked C++ Interview Questions | Set 2
Q. Major Differences between Java and C++ There are lot of differences, some of the major differences are: Java has automatic garbage collection whereas C++ has destructors, which are automatically invoked when the object is destroyed.Java does not support pointers, templates, unions, operator overloading, structures etc.C++ has no in built support