✔ 最佳答案
Java and C++ are both members of the "C family" of languages, and their syntax is quite similar. C++ strives to add objects to C, and does so fairly well. Java is also object-oriented, but deliberately does less than C++ (such as multiple inheritance of stateful classes) to reduce complexity. Being a newer language, Java is a "better" OO language than C++ in some ways. Java is a bit more strongly typed than C++. C++ compiles to executable code; Java to "bytecode" that must then be interpreted by a virtual machine.