Java language Programming (i)-1

Source: Internet
Author: User

Java language features is:

Strong type, developed a more language specification, as far as possible in the compilation phase to detect more errors and warnings.

Compiles and interprets, first compiling the source code into Codebyte, running the Java runtime system to load and link the classes that need to be executed, and doing the necessary optimizations to explain the execution of the bytecode program.

Automatic garbage collection, which automatically collects memory that is no longer in use by the system.

Object-oriented, using object-oriented thinking methods. The main features are encapsulation, inheritance, polymorphism and so on. The

is platform-independent and compiles once to run across platforms, provided the Java interpreter is installed on the platform.

Security, do not allow the use of pointers, array subscript out-of-bounds detection, memory auto-recovery to avoid missing or repeatedly free memory.

Distributed computing, where Java programs can access files on the network as if they were local files.

Multithreading. Support Multithreading.

Java applications differ from Java applets : Java applets need to be run in a Java-compatible container, such as in a browser, or on a website that is downloaded. However, Java applets cannot access files on the computer. Java applications do not have these limitations. The Java application must define the main () function in a subclass, and the Java applet does not have to define the main () function, but the subclass must inherit the Applate class. Java applications can inherit the Applate class, or they can inherit other classes. The

Java identifier supports Chinese characters.

data type: logical Type: Boolean, character type: char integer: int 32 bit, byte 8 bit, short 16 bit, long 64 bit; floating-point type: single-precision-FLOAT&N Bsp 32-bit, double-64-bit

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.