FRAME: Pointer to execution environment of current method.The registers of the Java virtual machine are just like the registers inside a “real” computer.JVM interprets these half-cooked byte code into executable machine code on different computer systems and platforms.Instead, programs are translated into byte code, just in its mid-way to a runnable. Java compilers do not translate programs directly into native binary code, which is system dependent.JVM keeps a compact set of Byte Code Instructions in order to interpret byte code into native binary code.An area for storing methods All five parts are necessary, may be implemented by a compiler, an interpreter or a hardware chip.Most web browser has an integrated JVM to run applets.JVM interprets and converts Java byte code into machine code in order to execute on a CPU.Java programs are compiled into byte code.Need to create an “abstract computer” of its own and runs on it, a kind of virtual machine which hiding the different OS implementations.Java programs are not computer, operating system dependent. Java’s goal is “Write-Once-Run-Anywhere”.An ordinary language can not create a system independent program.It creates an environment that Java language lives.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |