A good answer might be:(1) The program must be compiled into bytecode with the Java compiler, then (2) run using the Java interperter. |
Review of Running a Java Program
To run the program check that the DOS command interpreter is using the subdirectory
that contains the source file.
Do this by using the command
If you don't see the source file, use the Change Directory command
CD to get to the correct subdirectory.
To compile the source file (thereby producing a file of bytecodes)
enter the command C:\TEMP>javac Hello.java compiling: Hello.java C:\TEMP>java Hello Hello World! C:\TEMP> |
QUESTION 4:
|