Difference between C++ and JAVA?
December 5, 2006 4:57am CST
do u knw?
• United States
12 Dec 06
Java does not have pointers like C++. There are references but they are not as powerful and potentially dangerous as pointers. Everything in Java is derived from an object making it a pure object-oriented language. Everything except the primitive data types...but even these have corresponding wrapper classes that are treated as objects. Java allows for portability through the JVM, although it can now be done with C++ and .NET. But it is a lot more compact and programs or classes can be accessed through jar files.
3 Feb 11
The main differences are: 1. Java does not support operator overloading where operator overloading is C++ 's main feature 2. C++ Supports Multiple Inheritance where Java does not support so that it uses interface to support multiple inheritance. 3. Java does not support pointers