+ 1

Why is java and C++ have almost the same syntax?

I read somewhere in the internet that java is based on C, or is every language almost have the same codes? i.e. int, String, operators, for, while, etc... Because java and C++ are the only languages I have read so far.

21st Sep 2019, 6:59 AM
AltazarRequiem
AltazarRequiem - avatar
2 odpowiedzi
+ 1
i think its because c++ is well known back in a day ? so java made it easier for people who want to use it because the similarity. not so sure though, there are some panel or interview with James Gosling around youtube if you want to hear from the man himself. there's a chance that he'll talk about this topic.
21st Sep 2019, 7:17 AM
Taste
Taste - avatar
0
i think both are object oriented programming language and i m not sure but java is developed in replace of c++ ... also for mobile pltforms we can use java but not c++...
21st Sep 2019, 11:10 AM
Madhavi Desai
Madhavi Desai - avatar