javaccompiler. The bytecode gets saved on the disk with the file extension
.class. When the program is to be run, the bytecode is converted, using the just-in-time (JIT) compiler. The result is machine code which is then fed to the memory and is executed.
The Java class files or bytecode are compiled to machine code and loaded into memory by the JVM when needed the first time.