- Are object-oriented languages, all support encapsulation, inheritance and polymorphism
- Java does not provide pointers to directly access memory, program memory is more secure
- Java classes are single-inherited, and C ++ supports multiple inheritance; although Java classes cannot be inherited, interfaces can be inherited.
- Java has an automatic memory management mechanism that does not require programmers to manually release useless memory
The difference between Java and C ++
Guess you like
Origin www.cnblogs.com/0error0warning/p/12679521.html
Ranking