Posts

Showing posts from November, 2022

JAVA is both compiled and an interpreted language, JDM.

Image
 Java can be considered both a compiled (javac ) and an interpreted language because its source code is first compiled into a binary byte code. This byte code runs on the Java Virtual Machine (JVM), which is usually a software-based interpreter. Every high-level language code, like Java, needs to be translated to machine-native code for execution. This translation process can be either compilation or interpretation. The JVM converts that code into machine code using the Java interpreter. The JVM uses the interpreter at runtime, after that, it executes the code on the host machine. As the Java compiler compiles the source code into the Java bytecode.