The JVM virtual machine

Is Java compiled or interpreted

  • The answer is that interpretation and compilation are executed at the same time, and especially common code, which is used a lot, will make the just-in-time compilation a local compilation, without requiring the interpreter to explain it sentence by sentence the next time it is run.

The Java interpretation compilation process is shown below:

Java Virtual Machine (JVM independent of Java)

  • The key reason the JVM can run multiple languages on it is because of class files. Any language that can be compiled into a class file can be run on a Java VIRTUAL machine if it complies with the class file specification.

The JVM has eight instructions that are atomic

  • Lock up
  • Read (read)
  • Load
  • Use STH.
  • Assign
  • Store
  • Write (write)
  • UNLOCK