{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Dale - Computer Science Illuminated 255

Dale - Computer Science Illuminated 255 - 228 Chapter 8...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Bytecode A standard machine language into which Java source code is compiled 228 Chapter 8 High-Level Programming Languages achieve optimum portability, Java is compiled into a standard machine language called Bytecode . How can there by a standard machine language ? A software interpreter called the JVM (Java Virtual Machine) takes the Bytecode program and executes it. That is, Bytecode is not the machine language for any particular hardware processor. Any machine that has a JVM can run the compiled Java program. Be aware of the difference between the portability achieved by standard- ized high-level languages and the portability achieved by translating Java into Bytecode and then interpreting it on a JVM. A program written in a high-level language can be compiled and run on any machine that has the appropriate compiler. The program is translated into machine code that is directly executed by a computer. A Java program is compiled into Bytecode and the compiled Bytecode program can be run on
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Ask a homework question - tutors are online