Java is an advanced object-oriented programming language.
Java Virtual Machine is the key to cross-platform java programs. Different platforms have different JVMs, and the java word The section code does not contain any platform-related information and does not interact with the platform directly, but indirectly through the JVM. When the application is executed, the JVM loads the bytecode, interprets the bytecode into machine code for a specific platform, and lets the platform execute it.
Any application must be converted into machine code before it can interact with the computer. If the source of the machine code depends on the specific platform, then the application cannot be cross-platform. The machine code when the Java application is run is provided by the JVM, which is part of the Java system, and is not restricted by the platform, so it is cross-platform.3.Java program running process
4.java version
6.JRE
7.API
Help document has three parts. An application consists of a series of methods. What are the requirements for methods? What methods are accepted by programming languages? The API provides some basic methods. To implement a certain function, programmers must follow the Java language specifications and call these methods to write more advanced methods.
8.java Features
Cross-platform: Applications written in Java are not subject to platform restrictions and can be migrated from one platform to another.
Interpreted type: The source code written in the Java language is converted into bytecode. The bytecode can only be executed by the computer when it is interpreted by the JVM into machine code.
#Safety: The underlying design of the Java language can effectively avoid illegal operations.
Robustness: Java provides many mechanisms to prevent serious errors at runtime, such as compile-time type checking and exception handling.
Multi-threading: Java supports multi-threading, allowing multiple threads within the process to work at the same time.
The above is the detailed content of Introduction and characteristics of java. For more information, please follow other related articles on the PHP Chinese website!