Difference between C++ and JAVA?

India
December 5, 2006 4:57am CST
do u knw?
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.
@volatile (204)
• United States
12 Dec 06
P.S. Java does have a "destructor". You don't have to call it explicitly like in C++ because there is a built in garbage collection system in Java.
@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
@padhukr (2267)
• India
12 Dec 06
i don't
@satlove (1110)
• India
5 Dec 06
1.java is a true object oriented program 2.java has no destructor.........c++ has 3............many difference are there
• Singapore
12 Dec 06
java is slow and c++ is fast.java is platform independent and c++ isn't.
@_farjad (20)
• Pakistan
12 Dec 06
every decade bring a new language. c++ came after c java came after c++. Over all differences are obvious, like pure object orientation, virtual machine dependence, slow w.r.t c++, portability, present in java.