Current location - Education and Training Encyclopedia - Graduation thesis - Analyze the difference between java and c c++ (programming language design principle)
Analyze the difference between java and c c++ (programming language design principle)
Java and C/C++ languages

Java provides all the functions of a powerful language, but there is almost no ambiguity. C++ security is not good, but both C and C++ are accepted by everyone, so Java is designed in the form of C++, which is convenient for everyone to learn.

Java removes many functions of the C++ language, refines the language functions of Java, and adds some very useful functions, such as automatically collecting fragments.

Java deleted the following c and C++ functions:

Pointer operation

structure

typedefs

# Definition

Need to free memory

This will reduce the usual mistakes by 50%. Moreover, Java is very small, and the whole interpreter only needs 2 15K RAM.

Object-oriented: Java has realized the basic object-oriented technology of C++ and made some improvements (some functions have been deleted for the sake of language simplicity). Java handles data in the same way as it handles object data with an object interface.