First page Back Continue Last page Graphics
Executing Java Object Code
Java object code (the content of .class files) contains instructions for the Java Virtual Machine (JVM)
Java object code can be run on any machine that has an interpreter for the JVM
To execute object code, use the java command
- Argument must be the name of a class
- The class must have a main method defined
- Do not include the .class extension. Example: