Computer Science, asked by Anonymous, 1 year ago

What is the difference c++ and java??

Answers

Answered by TherealRenegade
3
C++ supports operator overloading multiple inheritance but java does not

Anonymous: give atleast more 1 point
TherealRenegade: Java is a pure object oriented programming language; therefore, everything is an object in Java (single root hierarchy as everything gets derived from java.lang.Object). On the contrary, in C++ there is no such root hierarchy. C++ supports both procedural and object oriented programming; therefore, it is called a hybrid language.
TherealRenegade: Java does not support pointers, templates, unions, operator overloading, structures etc. C++ supports structures, unions, templates, operator overloading, pointers and pointer arithmetic.
TherealRenegade: Java has built in support for threads. In Java, there is a Thread class that you inherit to create a new thread and override the run() method. C++ has no built in support for threads. C++ relies on non-standard third-party libraries for thread support.
Answered by kanishika1
2
HII
DEAR FRIEND
the difference between c++and java is that to begin with, java is a pure object oriented programming language, therefore everything is object in java...but c++ supports both procedural and object oriented programming language.. therefore it is called a hybrid language...
HOPE IT HELPED YOU....

kanishika1: plz mark as brainliest...
kanishika1: thnk u dear
Anonymous: anytime :)
Similar questions