Difference Between Java and C++
Advertisements
Difference Between C++ and Java
The main difference between java and C++ is; Java is platform independent language and it is mainly used for design web based application but C++ is platform dependent language and it is mainly used for design desktop application.
Java | C++ |
---|---|
Java does't support Pointer concept | It support pointer concept. |
It does't support multiple inheritances. | It support multiple inheritance |
Java does not include structures or unions. | It have structure and union concept. |
Java includes automatic garbage collection. | C++ requires explicit memory management |
Java has method overloading, but no operator overloading. | C++ supports both method overloading and operator overloading. |
It is platform independent programming language | It is platform dependent programming language. |
It is mainly used for design web based application but also use for develop desktop application. | It is used for design only desktop application like OS, Compiler etc. |
Java uses compiler and interpreter both | C++ use only Compiler. |
Java is high level programming language in java we write code like simple English language. | C++ is more nearer to hardware then Java |
Google Advertisment