The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
June 2000



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 Artima Forums.


Some other differences between C++ and Java

Posted by Vijay on June 17, 2000 at 3:29 AM

1. C++ is an object-based language. Java is an object oriented
language. (You can write prefect C++ code with out classes
but its not possible in Java.

2. There are no namespaces in Java.

3. Execption handling is a must in Java.

4. All instances execept that of primitive data types are
created on heap in Java.

5. The size of primitive data type (like int, float etc.) are
fixed in Java. The sizes are defined in limits.h in C++.

And many more...


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us