Java consists of two parts: Java programming language and Java Virtual machine . Java programming language for Java developers, defined by Java Language specification. Java virtual machines are defined by the Java VM Specification for Java bytecode files compiled from Java source code.
Java program Development and operation is mainly supported by the JDK and the JRE .
Jdk-java Development Kit, the Java SDK, mainly contains compilers and other tools for the Java programming language. The JDK is divided into Java SE, Java ee, and Java me three versions, where the Java SE version is the standard version, the Java EE version is the enterprise application version, and the Java ME version is the mobile, embedded version.
Jre-java runtime Environment, the Java Runtime environment, mainly contains the JVM and Java core class libraries.
The cross-platform nature of Java programs is provided by the JDK and JRE as the underlying foundation, and the key point is Java bytecode.
Java source files are compiled by the Java compiler to form a Java bytecode file. The Java bytecode file format is defined by the Java Virtual Machine specification, Java compilers with different versions of different platforms have the same semantics for Java bytecode files generated after compilation of the same Java source file (Java Bytecode specification development causes different compiler-compiled bytecode files to be not exactly the same byte content). Java programs are interpreted by the JVM at run time, and because Java bytecode files have the same semantics, Java programs perform the same results on different platforms.
Java bytecode and Java virtual machines make Java a cross-platform possibility.
Java Programming Platform