The Java Interpreter and the JVM

In the Java SDK environment, a Java program consists of class files that are interpreted by the Java Virtual Machine (JVM), which creates the objects defined in the class files and interacts with the host operating system to handle user input, file reading, and other hardware interactions. The JVM can detect security violations, runtime errors, and many types of errors in class files.

Web browsers that support Java may contain a JVM that is independent of any SDK components you have installed in your system or they may use part of the SDK. A JVM in a Web browser has many security restrictions imposed on it and deals with the operating system indirectly through the browser.

Java programs can also be compiled to ...

Get Java 2™ Programmer Exam Cram™ 2 (Exam CX-310-035) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.