What is 1.java?
Java is an advanced object-oriented programming language.
2.JVM
java Virtual Machine is the key to the cross-platform of Java programs, different platforms have different JVMs, and Java bytecode does not contain any platform-related information, not directly interacting with the platform, but indirectly interacting with the platform through the JVM. When the application executes, the JVM loads the bytecode, interprets the bytecode as a specific platform's machine code, and lets the platform execute.
Any application must be converted to machine code to interact with the computer, and if the source of the machine code relies on a specific platform, then the application cannot cross the platform. While the Java Application Runtime machine code is provided by a part of the Java system JVM, not limited by the platform, so the implementation of cross-platform.
3.java program running Process
The source code compiled by the programmer is converted to bytecode by the compiler, and bytecode is loaded into the JVM, which is interpreted by the JVM as machine code to run on the computer.
version 4.java
Java is divided into 3 versions for different purposes:
- The standard version of Java Se:java is the basis for other editions, primarily for the development of desktop applications.
- Java Me:java Enterprise Edition, primarily for the development of enterprise-class distributed network programs.
- Java EE: Mainly used for embedded system development.
5.JDK
Java Develop Kits, a toolkit for developing application prerequisites in the Java language, mainly includes compilers, JVMs, Java base APIs, and so on.
6.JRE
Java run Environment,java the environment that the runtime relies on, including the JVM and the Java base API.
7.API
application Programming Interface, an application programming interface, is a portal for writing applications in the Java language, including source code, bytecode help document three parts. How does an application consist of a series of methods that require it? What kind of method is accepted in the programming language? The API provides some basic methods for programmers to implement a feature that must follow the Java language Specification and invoke these methods to write more advanced methods.
8.java features
- Simple: The Java language is developed from C + +, eliminating complex, difficult-to-grasp parts of C + +, such as pointers.
- Object-oriented: The foundation of the Java language. Java sees everything as an interaction between objects and objects, abstracting objects into a collection of methods and properties.
- Distribution: It contains two aspects of operational distribution and data distribution. Operational distribution is a function that is performed by multiple hosts, and data distribution is a complete processing of data distributed across multiple hosts.
- Cross-platform: Applications written in the Java language are not platform-bound and can be migrated from one platform to another.
- Explanatory: The source code written in the Java language is converted to bytecode, and the bytecode can be executed by the computer only if it is interpreted by the JVM as a machine-code.
- Security: The Java language's underlying design can effectively avoid illegal operations.
- Robustness: Java provides a number of mechanisms to prevent critical errors at runtime, such as compile-time type checking, exception handling.
- Multithreading: Java supports multi-line lengths, allowing multiple threads within a process to work concurrently.
Introduction to Java