<" /> What are the differences between Java and C++?
BasisC++Java
<" />
You are here: Home / Topics / What are the differences between Java and C++?

What are the differences between Java and C++?

Filed under: Java Interview Questions on 2024-10-25 14:26:22
BasisC++Java
BasisC++Java
Platform                   C++ is Platform DependentJava is Platform Independent
ApplicationC++ is mainly used for System ProgrammingJava is Mainly used for Application Programming
HardwareC++ is nearer to hardwareJava is not so interactive with hardware
Global ScopeC++ supports global and namespace scope.Java doesn’t support global scope.
Not Supporting                  

Functionality supported in Java but not in C++ are:

  • thread support
  • documentation comment
  • unsigned right shift(>>>)

Functionality supported in C++ but not in Java are:

  • goto
  • Pointers
  • Call by reference
  • Structures and Unions
  • Multiple Inheritance
  • Virtual Functions
OOPSC++ is an object-oriented language. It is not a single root hierarchy .Java is also an object-oriented language. It is a single root hierarchy as everything gets derived from a single class (java.lang.Object).
Inheritance TreeC++ always creates a new inheritance tree.Java uses a Single inheritance tree as classes in Java are the child of object classes in Java.
Share This:

About Author:
A
Admin     View Profile
Dear, Focus on your study. I am a student and preparing for UPSC.