go to previous page   go to home page   hear noise   go to next page

Answer:

Yes. Hardware Java processor chips have been created out of silicon and can execute bytecode files just as a Pentium exectues files of its machine language.


Java Virtual Machine

Java Virtual Machine

Usually, however, people do not have hardware Java processor chips. They have ordinary PCs and Macintoshes.

Now for the clever part: the Java processor can be implemented as software! It is implemented as a program that reads the bytecodes and performs the operations they specify. (This type of program is called an interpreter.) The Java bytecode interpreter is an executable program that runs on whatever computer system you have.

The "Java interpreter" in the picture is an executable program that is running on an ordinary computer system, such as a desktop Pentium system. Each type of computer system has its own Java interpreter that can run on that system. The "Actual Processor" is the actual, hardware processor chip of that computer system.

(Another) Important Idea: When the Java interpreter is running on a computer system, that system acts just like a hardware Java bytecode processor. It is a Java Virtual Machine.

Any computer system can execute a Java bytecode program by using a Java interpreter. The Java interpreter has to be specifically written for that particular computer system, but once that is done, the computer system can become a Java virtual machine. That is, it looks like a computer with a hardware Java processor chip and can run Java bytecodes.

When a Java program is translated into bytecodes, the bytecodes are exactly the same no matter what computer system is used. This means the bytecodes on a Sun computer can be sent to an Intel based computer and they will run without a problem.


QUESTION 4:

Say that Apple has just come out with a new computer and wants this computer to run Java programs. What must Apple do?