0. How can I learn Java well ?, Learn java

Source: Internet
Author: User

0. How can I learn Java well ?, Learn java

We should learn Java well first. Let's take a look at the features of Java:

The Java language is simple.

The syntax of Java is very similar to that of C and C ++, making it easy for most programmers to learn and use Java. Java discards features that are rarely used and hard to understand in C ++, such as operator overloading and automatic forced type conversion. In particular, Java does not use pointers and provides automatic waste collection, removing the need for programmers to worry about memory management.

Java is an object-oriented

Java provides classes, interfaces, and inheritance. For the sake of simplicity, only single inheritance between classes is supported, but multi inheritance between interfaces is supported, and implementation mechanisms between classes and interfaces are supported. Java supports dynamic binding, while C ++ supports dynamic binding only for virtual functions. Java is a pure object-oriented programming language.

The Java language is distributed.

Java supports Internet application development. There is a Network Application Programming Interface (Java net) in the Basic java application programming interface. It provides class libraries for network application programming.

The Java language is robust.

Java Exception Handling and automatic collection of waste are important guarantees for Java program robustness. Discarding pointers is a wise choice for Java. Java's security check mechanism makes Java more robust.

The Java language is secure.

Java is usually used in network environments. Therefore, Java provides a security mechanism to prevent malicious code attacks. In addition to many security features of the Java language, Java provides a security mechanism for Classes downloaded over the network, for example, allocate different namespaces to prevent local classes with the same name and byte code check, and provide security management mechanisms to enable Java applications to set security guards.

The Java language is Architecture Neutral

The Java program is compiled as a system-neutral byte code format (a file suffixed with class) on the Java platform, and can then run in any system that implements the Java platform. This approach is suitable for distribution of heterogeneous network environments and software.

The Java language is portable.

This portability comes from the Neutral architecture. In addition, Java strictly specifies the length of each basic data type. The Java system itself is also highly portable, and the Java compiler is implemented in Java.

The Java language is interpreted.

Java programs are compiled into bytecode on the Java platform, and can then run in any system implementing the Java platform. During runtime, the Java interpreter on the Java platform interprets and executes these bytecode, And the classes required during execution are loaded into the runtime environment during the connection stage.

The Java language is multi-threaded.

In Java, a Thread is a special object, which must be created by the Thread class or its Child class. There are usually two ways to create a Thread: one is to wrap an object that implements the Runnable interface into a Thread using a Thread constructor. The other is, the subclass is derived from the Thread class and the run method is rewritten. The object created using this subclass is a Thread.

The Java language is dynamic.

One of the goals of the Java language is to adapt to the dynamic environment. The classes required by the Java program can be dynamically loaded into the runtime environment, or the required classes can be loaded through the network. This is also conducive to software upgrades. In addition, the class in Java has a runtime representation that can check the runtime type.

Java Communication Group 669823128

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.