It is said that Java overcomes all disadvantages of C++
Disadvantages of C++:
- Does not provide very strong type-checking. c++ code is easily prone to errors related to data types, their conversions, for example, while passing arguments to functions.
- Does not provide efficient means for garbage collection, as already mentioned.
- No built in support for threads.
- Gets complex when u want to develop a graphics rich application in c++
- portability of code on various platforms, etc
Then why is there a need for C++ language ?? Why cant we just use Java for all programming purposes??