Difference between C++ and Java ?

cpp-java

C++ Developed by Bjarne Stroustrup  at Bell Labs in 1979 and Java Developed by James Gosling at Sun Micro systems and released in 1995 as a core component of Sun Micro systems’ Java platform

C++ was designed for systems and applications programming. Java is a pure object oriented programming language. C++ support template classes, but java does not support them.

 

C++ is not a complete object oriented language as comparison to JavaJava is a complete object oriented language.
Supports native unsigned arithmeticNo native support for unsigned arithmetic
Conditional inclusion one of the main feature of C++Java does not support conditional compilation and inclusion
C++ use only compilerJava uses both compiler & interpreter
C++ supports operator overloading multiple inheritanceJava does not supports operator overloading multiple inheritance
C++ supports pointersJava does not supports pointers
C++ provides header filesJava does not provides header files
In C++ we can declared global variablesIn Java we can't declared global variables

Coding Tag

Coding Tag always happy to serve you in Information Technology (IT). Learn HTML, CSS, Javascript, PHP, Android, Digital Marketing, Latest IT News and many more.

Leave a Reply

avatar
  Subscribe  
Notify of