prev next prev next
  Course navigation
 
Lesson 6
Objective
The Java interpreter
Use Java interpreter to run Java apps
    Java Interpreter Role
Use the Java interpreter to run Java applications.
The Java interpreter is the tool used to execute Java applications. In doing so, it translates generic Java bytecode into native code that executes on a specific platform. The Java interpreter is only used to run stand-alone Java applications and cannot be used to run Java applets.
The Java interpreter included with the Java 2 SDK is called java, and it's executed like this: java Memory In this example, the Java application named Memory is executed using the Java interpreter. The Java interpreter expects the Memory application to be stored in the executable program file named Memory.class. This application reports how much free memory is available in the Java interpreter along with how much total memory the Java interpreter has access to.
Bytecode: Bytecode is the executable form of Java code, which is capable of being executed in the Java runtime system.
  Course navigation