- 3

What is difference between C + + and Java language

23rd May 2017, 8:56 AM
rahul
rahul - avatar
2 Answers
+ 4
1.java is truly object object oriented lamguage unlike c++ 2.java automatically frees memory used by methods and objects but in c++ manually and dynamically created objects using new must explicitly free memory by using delete operator 3.java doesn't support multiple inheritance but c++ does support multiple inheritance 4.in java you can not use pointers explicitly but in c++ you can 5.java supports multi threading but c++ does not support this feature 6. java is interpreted and compiled language but c++ is only compiled 7. java language makes platform independent program but c++ does not. 8. in java there is distinction between string and character array but in c++ initially not string does exist. 9. java uses unicode for character representation to internationalize programs but c++ uses ASCII code. 10. in java you can not define methods outside the class but in c++ you can.
23rd May 2017, 9:10 AM
Vikrant Banwal
Vikrant Banwal - avatar
+ 2
Update: 5 C++ now has multi threading features as well... 8 C++03 introduced strings as a class, with many useful methods, to be used as a data type... 9 C++11 has support for wchar_t and can now create independent programs with unicode support...
23rd May 2017, 1:41 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar