java virtual machine
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.
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.