C++ vs JAVA

  • C++ is platform dependent language.Java is platform independent language.
  • we can declare variables globally in C++.Java doesn't support global declaration of variables.
  • we can only compile C++ programs but Java programs can be compiled and interpreted.
  • we have to include header files in C++.There is no need to include header files in Java.

  • C++ supports multiple inheritance.Java doesn't support multiple inheritance.
  • C++ supports operator overloading.Java doesn't support operator overloading.
  • C++ doesn't support multiple threading.Java supports multiple threading.

Share it


Post a Comment