Sunday, 15 May 2016

Difference Between Java and C++

Difference Between Java and C++

Hello friends today we will discuss about most important interview question; Difference Between Java and C++

Difference Between Java and C++

The main difference between java and C++ is;

  • Java is platform independent but C++ is platform dependent language 
  • Java is used for design web based application but C++ is mainly used for design desktop application.
  • Java uses compiler and interpreter both but in c++ their is only compiler
  • C++ supports operator overloading multiple inheritance but java does not.
  • C++ is more nearer to hardware then Java.
  • Java does not support default arguments but C++ have.
  • C++ have got statement but java have no goto statement.
  • Java does not support unsigned integer.
  • Java supports classes, but does not support structures or unions.
  • Save java program with extension .cpp C++ program save with extension .java
I hope these information is helpful for you.

No comments:

Post a Comment