(This exercise assumes your computer contains a Hello.java file like that in Figure 1.6. If not, use...

Question:

(This exercise assumes your computer contains a Hello.java file like that in Figure 1.6. If not, use a plain text editor to create such a file.) On a computer whose operating system is a recent version of Microsoft Windows, invoke:

Start > Windows System > Command Prompt

Navigate to the directory that has the Hello.java source code. Enter dir Hello.* to list all files starting with “Hello”. If this list includes Hello.class, delete that file by entering del Hello.class. Enter javac Hello.java to compile the source code. Again enter dir Hello.* and verify that the bytecode file, Hello.class, has been created. Now you can enter java Hello to execute the compiled program. Enter type Hello.java and type Hello.class to get a feeling for how bytecode differs from source code.

Figure 1.6

Untitled - Notepad Eile Edit Format View Help public class Hello public static void main(String[] args)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: