Compilation, Interpretation, and Nature of Java

I am a student learning my way into coding. I would be posting on the progress of my Journey.
Hi Everyone,
While executing a program there are two methods that are applicable. They are:
- Compilation
- Interpretation
Compilation
Compilation is the process of converting high-level code into machine-level code.
In this process, it uses a compiler. The compiler takes all the lines of instruction from the source file and converts everything into machine-level code

Interpretation
Interpretation is the process of converting high-level code into machine-level code.
In this process, it uses an interpreter. The Interpreter takes only one line of instruction from the source file and converts it into machine-level code. After completing the line of instruction, the same process continues line by line till the execution of the last line of the source file.

WORA nature of Java
Java applications are called WORA (Write Once Run Anywhere). This means a programmer can develop Java code on one system and can expect it to run on any other Java-enabled system without any adjustment. This is all possible because of JVM.
Java program which is written once can be executed anywhere across the devices irrespective of architecture that the device is built upon. Hence, Java programming language is also called as Architecturally Neutral Programming Language.
P.S Thank you for reading and also read my other post to learn from the beginning.



