Java programming language

Types of jvm in java

Posted on

Types of jvm memory in java:- There are three types of JVM in JAVA see here detail.

  • JIT (Just In time Compiler)
  • JAVA interpreter
  • JAVA RunTime Environment

                                                                JAVA compiler is known as just in time compiler because all programs are just in time compiler because the entire program is not converted at a time to its equivalent object code (byte code). We know that compiler compile a program in to two phases. The first phase is known as analysis of source program. In this phase only syntax errors are checked. If syntax errors are present then appropriate error message is displayed. The second phase is called synthesis of object program. In this phase actual object code is created. But JAVA compiler, compile those segment which is to be executed in the next cycling. JAVA compiler is not compile system defined function because they are in compiled form.

That means JAVA compiler compile a particular segment at a time which is to be executed in the next cycling. JAVA compiler creates an intermediate code which is called byte code, written in Unicode system. The intermediate byte code is interpreted by the JAVA interpreter and creates appropriate object code understandable by the physical operating system. The JAVA compiler is “javac” and the JAVA interpreter is “java”. JAVA interpreter interprets byte code to its equivalent object code and sent to the java runtime environment and the java runtime environment sent the interpreted object code to the operating system.

Actually the operating system and the java interpreter is interfaced using java run time environment. The main component present behind the platform independency is the java run time environment. In this component all the kernel information of popular operating system are present at the time of installation. The kernel information is activated in the java runtime environment which is present in the internal operating system of the computer. The other kernels are temporarily deactivated.

This blog written by Jitendra Kumar (Java Trainer at Vtech Academy of Computers) Best JAVA Training Institute