Difference between C++ and JAVA

In this topic, you will learn about, Difference between C++ and JAVA.

C++ JAVA
It is platform dependent language. It is a platform-independent language.
It uses a compiler. It uses a compiler as well as an interpreter.
It supports Goto’s statement. It does not support Goto statement.
It supports multiple inheritances. It does not support multiple inheritances.
It supports pointer. It does not support pointer.
It supports structure and union. It does not support structure and union.
It does not support documentation comments. It supports documentation comments.
It supports both calls by value and call by the reference method. It supports only call by value methods.
It supports operator overloading. It does not support operator overloading.
It supports preprocessor directives. It does not support preprocessor directives.

Also Read: Top 10 best books to learn C Programming

Comment below if you have queries related to the above topic, the Difference between C++ and JAVA.

See also  Java Environment