Close sidebar

Java v/s C++

Apart from being platform independent , what are the other features that makes Java a better approach than C++?

Your Answer

Java and C++ both are object-oriented programming language but there are differences between these two languages which are listed below

1. Pointers: C++ Supports pointer while Java doesn't

2. C++ uses compiler while Java uses both compiler and interpreter.

3. C++ supports header files while in case of Java there are no header files supported

4. C++ has a goto statement while Java does not have any kind of goto statement.

5. Java supports automatic garbage collection and has no support for destructors as in the case of C++ it has destructors.

6.   C++ has a scope resolution operator :: while in the case of Java there is no scope resolution operator.

टिप्पणी
मॉक परीक्षण अभ्यास के लिए
programming in java