(Note) JRE is a Java runtime environment that contains the Java Virtual Machine (JVM) and Java base class libraries. Is for users who want to run Java programs.
The JDK is a Java development kit, which is used by programmers to write Java programs using the Java language.
JRE: Java Runtime Environment JDK: Java Development Kit The JRE is a Java Runtime Environment that contains the Java Virtual machine (JVM) and Java basic class libraries. Java is the software environment that programs written in the Java language need to run. It is provided to users who want to run Java programs. The JDK, as its name implies, is the Java development kit, which programmers use the Java language to write Java programs. It is provided to programmers. JDK includes JRE, but also contains the compiler javac compilation Java source code, but also contains a lot of Java program debugging and analysis tools: JConsole, JVisualVM and other tools, but also contains the Java program to write required documents and demo examples. If you need to run Java programs, just install the JRE. If you need to write Java programs, you need to install the JDK.
In other words, there is no such thing as cross-platform. For example, if you give a CPU of a different model, say 10001101, they may parse different results. As long as you have the JVM installed, it will know the JAVA bytecode ~~~~ as for the underlying machine code, we don’t care. Once the JVM is done, it will translate the bytecode into the machine code that the machine knows