jvm 在哪里加载编译后的 java 代码?

Where does the jvm load the compiled java code?

业务逻辑编译完成后,.class文件生成在我们的硬盘中。我的疑问是,当我们执行编译后的代码时,它必须加载到某个地方。那是什么地方?!

.class 文件包含硬件说明和 OS。 .class 文件在程序执行之前加载到 JVM 内存 (RAM) 中并在那里进行处理。

Compiled code to be executed by the Java Virtual Machine is represented using a hardware- and operating system-independent binary format, typically (but not necessarily) stored in a file, known as the class file format. The class file format precisely defines the representation of a class or interface, including details such as byte ordering that might be taken for granted in a platform-specific object file format.

取自:Chapter 2. The Structure of the Java Virtual Machine