Java Basics
The JVM, JDK, JRE relationship:
JDK: (Java Develop Kit) is primarily intended for developers and is the core of the entire java. It includes the Java Runtime Environment (JRE), Java Tools (JAVAC/JAVA/JDB, etc.), and the Java base Class library.
JRE: (Java Runtime Environment) is a collection of environments that a Java program must run. It includes the JVM standard implementation and the Java Core Class library.
JVM: (Java Virtual machine) Java VMS, Java itself is not cross-platform, Java cross-platform relies on the JVM to achieve.
All Java programs will be compiled into a. class file, the JVM can execute the compiled class file, that is, the class file is not directly related to the machine's operating system, but through the Java Virtual Machine concise and operating system interaction, by the virtual machine to interpret the program as different target code (different operating system generation of target generation Code is different) and executed on the local system. Only the JVM is not able to execute the class file, because the class file is interpreted with the Lib class library, and the JRE contains the Lib classes.
J2SE, Java EE, J2ME
J2ee,j2se,j2me is a multiple version of Sun's Java, just like Windows XP and the Pro and Home editions.
Java EE: Enterprise Edition, which uses this JDK to develop the EE application, starting with JDK 5.0 and renaming Java.
J2SE: Standard version, which is the version we usually use. Renamed from JDK5.0 to Java SE.
J2ME: Mobile for small devices, is a subset of J2SE. Used primarily for Java applications on mobile devices and embedded devices, starting with JDK 5.0 and renaming Java ME.
Getting Started with Java basics