Java and Java notes
In today's development trends, Java has always been popular because it naturally exists.
Java has the following features:
1. Simplicity
Java is actually a simplified version of C ++ that removes complexity. If you have no programming experience, you will find that Java is not difficult to master,
If the reader has the C language or C ++ language foundation, it will feel that Java is simpler, Because Java inherits most of the features of C and C ++.
2. Object-oriented
Many languages claim to be object-oriented, but Java is a pure object-oriented language, and object-oriented is a very abstract language. Java Object-oriented thinking has three main features: inheritance, polymorphism, and encapsulation.
3. robustness and Automatic Memory Management
Anyone who has studied C or C ++ knows that they must manually allocate and release the memory during memory operations.
The robustness of a language is reflected in its ability to prevent common errors. The Java language demonstrates this well,It uses an automatic memory management mechanism. You can use the automatic memory management mechanism to automatically allocate and release the memory.Work.
4. Security
Java is designed for security considerations and has many performances. First, Java is a strong-type language. Each data defined in Java has a strictly fixed data type, in addition, when data is transmitted between data types, an error is returned if no matching result is required.
As pointers are an important means for hackers to constantly infringe on memory, they can block pointers in Java. Therefore, Direct Memory operations are not allowed, greatly improving the Memory Security.
5. Cross-Platform
Cross-platform. With the increasing variety of hardware and operating systems, the cross-platform programming language becomes more and more important.The cross-platform nature of a language is reflected in the workload of code modification during cross-platform running of the language program.
Java isA fully cross-platform language. When a program runs across platforms, the program itself does not need to be modified.Write times, run everywhere ".