This discussion is archived
1 Reply Latest reply: Mar 14, 2007 1:36 AM by 807597 RSS

virtual machine

807597 Newbie
Currently Being Moderated
im new in java programming i dont understand how the virtual machine work & what the benefit of using it for this reason is the java work platform independently
  • 1. Re: virtual machine
    807597 Newbie
    Currently Being Moderated
    Hi,

    The JVM is actually a "specification" - guidelines for others to follow & implement a standard JVM (including Sun Inc.). The JVM is the Java Interpretter that "runs" your Java Programs.

    The Java Compiler ( javac ) compiles the Java Source File into a Java "Class" File ( which, is again a Specification ) that contains "Machine Independent Byte Codes".

    The JVM reads the "Machine Independent Byte Codes" & converts these into "Machine Dependent System Codes". The "Machine Dependent System Codes" are specific to each Platform.

    I hope this explains the JVM stuff.

    Regards,
    Sandeep