Jumat, 30 September 2011

C++ Versus JAVA

On the Other hand, Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform.

It has no preprocessor.

If you want to use classes in another library, we have to import with name of the library.

There are no preprocessor-like macros.

Java uses packages in place of namespaces.

There are no Java pointers like in the C and C++.

There are no destructors in Java. Java has constructors, similar to constructors in C++.

Java has method overloading that works similar to C++ function overloading.

Java does not support default arguments.

There’s no goto in Java. Java has no templates.

Inheritance in Java is similar as in C++, but the syntax is different.

0 komentar:

Posting Komentar

My Visitor

free counters
 
Candra Personal Blog powered by blogger.com
Design by Free7 Blogger Templates Simple Clean