Difference between C++ and JAVA?
@srinathakarapu (3093)
India
6 responses
@volatile (204)
• 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.
@sanmru (50)
• Australia
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
@cooldude8889 (2609)
• Singapore
12 Dec 06
java is slow and c++ is fast.java is platform independent and c++ isn't.