Java and Java notes

Source: Internet
Author: User

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 ".

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.