What is Java Virtual Machine (JVM) in Java?


Before knowing about Java Virtual Machine (JVM) we should know about Java Run-time Environment (JRE).


Java Run-time Environment (JRE) :-

Java Run-time Environment (JRE) helps in running the program. JRE  contains  Java Virtual Machine, Java Classes, Packages and Run-time Library.

If we don't want want to write programs but only execute the program written by others then JRE  alone will be Sufficient.




Java Virtual Machine :- 

Java Virtual Machine (JVM) is the important part of  Java Run-time Environment (JRE). Which actually runs the program (.class), it is used to run the java .class file & Run-time library to execute those program.



  1.  Every Operating System or Platform will have different JVM.                                                                                            
  2. JVM is an Abstract Computing Machine.                       
  3. JRE is an implementation of the JVM                                                                                    
  4. JVM becomes an Instance of JRE of Run-time of a Java Program. It is widely known as Run-time  Interpreter.                                                                                       
  5. The JVM is a foundation on top of which the java technology  is built-in upon.                                                             
  6. JVM Largely helps in the abstraction of inner implementation from the programs who make use of  libraries for the program. 
 
Every Operating System or Platform will have different JVM.




Post a Comment

0 Comments