What are the major differences between java and c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What are the major differences between java and c++

3rd Dec 2016, 6:27 PM
sai chander
sai chander - avatar
5 Answers
+ 2
put it this way. assembly is the father of modern languages, c++ is the cute smart kid and Java is the half retarded kid
3rd Dec 2016, 7:02 PM
Elio
Elio - avatar
+ 2
@Elio I personally like Assembly and C . it's only when you learn Assembly that you really understand what a computer is .
3rd Dec 2016, 7:14 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 2
Both Java and C++ support object oriented programming, yet there are differences between them. To begin with, 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 ).
3rd Dec 2016, 10:12 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
+ 1
the most notable difference is that java use Java Virtual Machine to run your program, which makes it run on many platforms without changing your code . C++ compiles your code to an executable binary that will only work on the CPU architecture that is compiled for . example ARM or 32bit 64bit . sure there are other differences I can't list them all .
3rd Dec 2016, 6:56 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
@bahhax404 could not agree with you more. I love assembly, you really feel the power!
3rd Dec 2016, 9:34 PM
Elio
Elio - avatar