Difference between C++ and Java

by Yogesh Khanna 01-Jan-16

18 0 329

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 complete Object Oriented as language comparison to Java
Java is a complete Object Oriented language
Supports native undersigned arithmetic
No 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 compiler
Java uses both compiler and interpreter
C++ supports operator overloading multiple inheritance
Java does not support operator overloading multiple inheritance
C++ supports pointers
Java does not supports pointers
C++ provides header files
Java does not provides header files
In C++ we can declared global variables
In Java we can't declared global variables



Leave a Reply