|
|
You will hate your professor if he/she make you do this.... (and yet, the pioneers in Computer Science had done this... we must be grateful to them)
|
Pictorially:
(An application is a file that contains machine instructions (which can be executed by a computer))
|
The name of the file must end with the characters:
|
The ending of a filename is called the file extension and it is commonly used to identify the kind of file.
UNIX prompt>> javac ProgramFileName.java |
The Java compiler javac will store the translated machine codes into a file name ProgramFileName.class
What to do:
|
|
However, no such Java machine has ever been built
In other words:
|
|
Emulators are also known as virtual machines
(Because they do the same thing as a real machine, but is not a physical machine)
|
(A Java virtual machine is an emulator)
|
ProgramFileName.class |
This program can be excuted by the Java virtual machine java by executing the following command:
java ProgramFileName |
Note:
|
What to do:
|