(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:
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
Step by Step Answer:
Introduction To Programming With Java A Problem Solving Approach
ISBN: 9781260575248
3rd International Edition
Authors: John Dean