DEV Community

Preethi Nandhagopal
Preethi Nandhagopal

Posted on

JAVA Translator

JAVA translator:
There are two levels of translator :
i)JDK
ii)JRE,JVM,JIT

Compiler/Interpreter and Code translator:
In programming languages translator can also mean :
Compiler -Translate java source code into byte code (.class files).
Interpreter-Executes java byte code on the JVM.
Code translator-Converts code from another programming language to java.

What is JDK ?
It stands for java development kit.
It is a software provide by the oracle.
It is used to build and develop the java program.
It contains JRE.
It contains the compiler and debugger.
It is independent.(write once, run anywhere. The bytecode is not tied to any specific OS or hardware. It runs on any machine that has JVM.)
It contains all the related set of libraries and set of file to build and compile the program.
Without JDK we can't built any java program.

What is JRE?
It stands for Java runtime environment.
It is dependent.
JRE contains JVM.
It is responsible unit to run the java program.
JRE contains all the inbuilt packages and library files like lang, io, util etc.

What is JVM?
It stands for Java virtual Machine.
It is dependent.
JVM is responsible for converting the byte code to machine code.
It takes (.class file) and execute it by managing the memory.
It contains JIT.
It major role to manage memory.
It loads, verifies and execute the code and provide the runtime environment.

What is JIT?
IT stands for just in time.
It is dependent.
Java was a interpreted programming language ,but after introducing the JIT in java it is known as interpreted compiler programming language.
It increase the speed of a execution.
JIT helps JVM to find the active OS.

How to compile a java code ?
javac filename.java

How to run the java code?
filename.java

Top comments (0)