What is JVM in java……….a brief description

Java Virtual Machine (JVM)

It is the principal component of Java architecture that provides the cross platform functionality and security to Java. This is a software process that converts the compiled Java byte code to machine code. Byte code is an intermediary language between Java source and the host system.

Most programming language like C and Pascal translate the source code into machine code for one specific type of machine as the machine language vary from system to system. So most complier produce code for a particular system but Java compiler produce code for a virtual machine. The translation is done in two steps. First the programs written in Java or the source code translated by Java compiler into byte code and after that the JVM converts the byte code into machine code for the computer one wants to run.
So the programs files written in Java are stored in .java files and the .java files are compiled by the Java compiler into byte code that are stored in .class file. The JVM later convert it into machine code. In fact the byte code format is same on all platforms as it runs in the same JVM and it is totally independent from the operating system and CPU architecture. JVM is a part of Java Run Time Environment that is required by every operating system requires a different JRE. JRE consists of a number of classes based on Java API and JVM, and without JRE, it is impossible to run Java. So its portability really made it possible in developing write once and run anywhere software.

If you have questions, please ask below


  1. Nitushi says:

    Where does this JVM resides??



  3. Vinay Kumar Singh says:

    what is range of char in java ?

  4. Vinay Kumar Singh says:

    what is range of char in java?

    • Akshay Pathania says:

      Unlike many other programming languages including C and C++ when Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code. This byte code is distributed over the web and interpreted by virtual Machine (JVM) on whichever platform it is being run

  5. Vinay Kumar Singh says:

    why we cannot run the java program without JVM?

  6. priyaranjan kumar says:

    why java is plateform independance

    • sudhir kumar kushwaha says:

      when we compile java code then byte code is generated.
      and this byte code can be run on any system where is JVM.
      it does not matter where we have compiled this java code.so java is called plateform independance

  7. mleket says:

    iam enabled tounderstand what java virtual machine is from your web page.

  8. meenal says:

    why java is robust and secure and what is byte code>

  9. kuppu says:

    JVM is a compiler or interpreter.

  10. ganesh says:

    where does JVM lies in eclips?when i start Eclips i got the error that verison greater than 1.5 is required..i alredy install 1.6 but still that error occurs..plz help??

  11. sandeep says:

    whyyyyyy tha jvm is required on directly on run time ?????

  12. suresh says:

    why need to use in java?linux os not consider in jvm?

  13. suresh says:

    why need to use jvm in java any os?

  14. vipin says:

    is jvm actually hardware

  15. nigam says:

    what is jre?

Leave a Reply

If you have any questions headover to our forums

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>