Each of the Java bytecodes fall into a few categories, here they are, along with examples:
- Loading and Storing (
- Logic and Arithmetic (
- Type Conversion (
- Object Creation and Manipulation (
- Stack Management (
- Control Transfer (
- Method Invoking and Returning (
- And of course, nothing (
Most bytecodes are also prefixed by the initial object type:
- Integer (
- Long (
- Short (
- Byte (
- Character (
- Float (
- Double (
- Reference (
- Wikipedia article on Java bytecode.
For further information on each specific bytecode, you can look at this Wikipedia article.
Next time I will dissect the bytecode of such a simple program in any language, the "Hello world" example.