- 3
What is difference between C + + and Java language
2 Antworten
+ 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.
+ 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...