Let's start by analyzing the differences between Java and C + +:
Java is a purely object-oriented language, and C + + is a language based on object-oriented procedures.
Java has a garbage collection mechanism. Its syntax is a subset of C + +, which has C + + in Java. and C + + Some Java does not have all.
Java also includes built-in types and their own definition types. In the local open space, after the ability to use the value. The types of Java are treated as objects. No operator. No self-increment action, treat operator as function
Java also has a garbage collection mechanism. Reflection mechanism.
Then analyze C and C + + differences:
C has only member variables, there is no way to say, and C + + has its own member variables and member functions;
The latter has references to function overloads. Template (code at compile time), operator overloading.
The latter function has default values. And the former did not.
The difference between Java and c++,c and C + +