What are the BIG differences and the BIG similarities between C++ and Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What are the BIG differences and the BIG similarities between C++ and Java?

1st Jan 2017, 12:11 PM
Edwin Pratt
Edwin Pratt - avatar
5 Answers
+ 4
The BIG differences: • The Syntax • Java is slower than C++ because it has to be translated in binary code first then it has to get user input and/or print the text or number and it also has to add, subtract, multiply and divide in binary code • C++ is faster than Java because it can only translate in to binary code and octal code if cout << ' hello world ' << endl; is applied. therefore it will only output hello world if double quotations (" ") are applied. The BIG similarities: • C++ and Java are actually similar in Syntax by 15% they use { }, =, ℅, |, [ ], …etc • C++ and Java are used for Hacking • They are able to view, delete and override files of different codes
1st Jan 2017, 12:33 PM
Edwin Pratt
Edwin Pratt - avatar
+ 2
Edwin Pratt, Java is not used for hacking (or at least this is what I know)
1st Jan 2017, 4:17 PM
Mihai Dancaescu
Mihai Dancaescu - avatar
+ 2
@Mihai Dancaescu in some cases you have to run one c++ program and one Java program: Java is used to get some hidden files. C++ is used to get different files that are not hidden. C++ is used to find the password. In an app called Hacked, it uses some Java code.
2nd Jan 2017, 7:08 AM
Edwin Pratt
Edwin Pratt - avatar
+ 2
@Brenda Mejia Python can be used for Hacking but in some cases you must use C++ and Java.
4th Jan 2017, 8:47 AM
Edwin Pratt
Edwin Pratt - avatar
+ 1
I believe python is used for hacking
4th Jan 2017, 6:15 AM
Brenda Mejia
Brenda Mejia - avatar