Introduction Edit

Java bytecode is the form of instructions that the Java virtual machine executes. Each bytecode instruction or opcode is one byte in length; however, not all of the possible 256 instructions are used. In fact, Sun Microsystems, the original creators of the Java programming language, the Java virtual machine and other components of the Java Runtime Environment (JRE), have set aside 3 values to be permanently unimplemented. [1]

Relation to Java Edit

A Java programmer does not need to be aware of or understand Java bytecode at all. However, as suggested in the IBM developerWorks journal, "Understanding bytecode and what bytecode is likely to be generated by a Java compiler helps the Java programmer in the same way that knowledge of assembler helps the C or C++ programmer." [2]

Execution Edit

Java bytecode is designed to be executed in a Java virtual machine. There are several virtual machines available today both free or commercial.

Further information: Java Virtual Machine

If executing Java bytecode in a Java virtual machine is not desirable, a developer can also compile Java source code or Java bytecode directly to native machine code with tools such as the GNU Compiler for Java. Some ARM processors have the ability to execute bytecode directly.

See Also Edit

References Edit

1. Understanding bytecode makes you a better programmer (Java Sun)

2. Understanding bytecode makes you a better programmer (IBM)

Links Edit

Wikipedia Definition

Smallwikipedialogo.png This page uses content from Wikipedia. The original article was at Java bytecode. The list of authors can be seen in the page history. As with Java Wiki, the text of Wikipedia is available under the GNU Free Documentation License.


Community content is available under CC-BY-SA unless otherwise noted.