java virtual machine

India
March 13, 2007 10:17am CST
hi todays topic in java is about java virtual machine: the java virtual machine specification defines JVM as : An imaginary machine that is implemented by emulating it in software on a real machine.code for the jvm is stored in .class files,each of which contains code for atmost one public class. the java virtual machine specifcation provides the hardware platform specifications to which you compile all technology code.this specification enables the java software to be platform independent because compilation is done for generic machine,known as the JVM. the compiler takes java application source code and generates bytecodes.bytecodes are machine code instructions for the JVM.these .class file are executed by the java interpreter. the JVM design enables the creation and implementations for multiple operating systems.for example sun microsystems provide implementation of JVM for the solaris OS and the linux and for microsoft windows operating system.
2 responses
@jhawithu (1070)
• India
12 Apr 07
(JVM) is a virtual machine that interprets and executes Java bytecode. This code is most often generated by Java language compilers, although the JVM can also be targeted by compilers of other languages. JVMs may be developed by other companies as long as they adhere to the JVM standard published by Sun. The JVM is a crucial component of the Java Platform. Because JVMs are available for many hardware and software platforms, Java can be both middleware and a platform in its own right — hence the expression "write once, run anywhere." The use of the same bytecode for all platforms allows Java to be described as "compile once, run anywhere", as opposed to "write once, compile anywhere", which describes cross-platform compiled languages.
@dj_faheem (738)
• Pakistan
14 Mar 07
hmmmm thanks for share it dude....................i increase my knowlegde thorugh your topic by the way i am a new student of java i just started classes and objects in java.............