This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Difference is there for sure .......here follows some of them........
Posted by Suguna on June 15, 2000 at 5:39 AM
> is there anything called java3.0 coming up????
i ll try to put that in simple terms... Whatever is a bit complicated (to program) in C++, Java doesnot have them. like Pointers, unions operator overloading etc...
The Java language promoters initially said "No pointers!", but when many programmers questioned how you can work without pointers, the promoters began saying "Restricted pointers." You can make up your mind whether it�s really a pointer or not. In any event, there�s no pointer arithmetic.
There are no destructors in Java. Java does not support default arguments.
There�s no scope resolution operator :: in Java. Java uses the dot for everything, but can get away with it since you can define elements only within a class. Even the method definitions must always occur within a class, so there is no need for scope resolution there either.
There�s no "goto " statement in Java.
Java doesn�t provide multiple inheritance (MI), at least not in the same sense that C++ does
Exception handling in Java is different because there are no destructors.
Java has method overloading, but no operator overloading. The String class does use the + and += operators to concatenate strings and String expressions use automatic type conversion, but that�s a special built-in case.
And.......last but not least is Platform dependency of Java, where C++ fails bitterly.
I tried to put whatever i read and i understood.
i hope it may clear ur doubt.....