You are on page 1of 1

What is the difference in between C++ and Java.

Java:
There are no pointers.
There is no Operator Overloading.
There are no preprocessors.
There are no Structures and Unions.
There are no Enums.
There are no Functions (only methods within class).
There is no goto statement. (In Java goto and const are reserved words but
Unused)
There are no Coercions (types should be converted explicitly)
There are no Global variables (variable is part of a class)
There are no Templates. (But present in latest versions)
There are no default parameters.
There is garbage collection.
There is multi-thread support.

C++:
There are pointers.
There is Operator Overloading
There are preprocessors.
There are Structures and Unions.
There are Enums.
There are functions.
There is goto statement.
There are Coercions.
There are Global variables
There are Templates.
There are default parameters.
There is no garbage collection.
There is support for multi-threading.

Java doesn’t support multiple inheritance directly to avoid


ambiguities.Java does operator overloading implicitly on ‘+’ for
concatenation of strings only.

You might also like