Can you tell me difference between java and c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Can you tell me difference between java and c++?

there are more compliler and coding languages i almost confuse what is difference between java and c++. please help me that i can understand easily.

3rd Dec 2017, 6:09 AM
Pratik Bagale
Pratik Bagale - avatar
11 Answers
+ 18
Most differences between the features of the two languages arise due to the use of different programming paradigms. C++ breaks down to functions while JAVA breaks down to Objects. C++ is more object-oriented while JAVA is data-oriented. 2. Java is an Interpreted language while C++ is a compiled language. Both C++ and java are object oriented programming languages. Both contains OOP features.
3rd Dec 2017, 6:11 AM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
+ 10
both are object oriented programming language but if you know c++ than java will be easy to understand for u main difference between java and C++ is Java is platform independent language and it is mainly used for design web based application but C++ is platform dependent language .hope it helped u till some extend..
3rd Dec 2017, 6:25 AM
Anisha
Anisha - avatar
+ 6
@Pawan Rajpurohit. I liked the way u keep on challenging me. well done🎆🎇🎆🎇🎆🎇🎆🎇🎆good wishes👍
9th Dec 2017, 4:27 PM
harshita marko
harshita marko - avatar
+ 2
java is a language where you have to write the code once and you can run it anywhere,c++ needs a specific code for a specific platform
3rd Dec 2017, 6:28 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 2
in java also develope desktop application like with help of awt pakage
3rd Dec 2017, 7:49 AM
Pawan Rajpurohit
Pawan Rajpurohit - avatar
+ 2
thank You i Enjoyed with you challenging
9th Dec 2017, 4:30 PM
Pawan Rajpurohit
Pawan Rajpurohit - avatar
+ 1
Hiiii
3rd Dec 2017, 12:09 PM
E Kiran Kumar
E Kiran Kumar - avatar
+ 1
Anusha
3rd Dec 2017, 12:09 PM
E Kiran Kumar
E Kiran Kumar - avatar
+ 1
c++ is platform oriented ,where as java is not platform oriented. c++ is partially object oriented but java is fully object oriented.
10th Jan 2018, 1:30 PM
DINESH DAS
DINESH DAS - avatar
+ 1
download compiler on android... for coding everywhere in pocket.
11th Feb 2018, 6:38 PM
Pratik Bagale
Pratik Bagale - avatar
+ 1
Source: https://stackoverflow.com/questions/1326071/is-java-a-compiled-or-an-interpreted-programming-language "Java is a compiled programming language, but rather than compile straight to executable machine code, it compiles to an intermediate binary form called JVM byte code. The byte code is then compiled and/or interpreted to run the program."  "Code written in Java is: First compiled to bytecode by a program called javac as shown in the left section of the image above;Then, as shown in the right section of the above image, [2]another program called java starts the Java runtime environment and it may compile and/or interpret the bytecode by using the Java Interpreter/JIT Compiler."
12th Sep 2018, 12:07 PM
Anis
Anis - avatar