What's the difference between Java and C++?
Java and C++ what is the difference, many novices are not very clear, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
(1) Java is a pure object-oriented language, and all objects are inherited from java.lang.Object,C++ in order to be compatible with C, that is, object-oriented and process-oriented.
(2) Java implements cross-platform features through virtual machines, but C++ depends on a specific platform.
(3) Java does not have a pointer, its reference can be understood as a security pointer, and C++ has the same pointer as C.
(4) Java supports automatic garbage collection, while C++ needs manual collection.
(5) Java does not support multiple inheritance and can only achieve the same goal by implementing multiple interfaces, while C++ supports multiple inheritance.
(6) Java does not support operator overloading. Although you can perform addition operations on two String objects, this is an operation built-in to the language and does not belong to operator overloading, and C++ can.
(7) goto of Java is reserved, but not available. C++ can use goto.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.