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
(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
![Untitled - Notepad Eile Edit Format View Help public class Hello public static void main(String[] args)](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1704/7/1/9/384659bf4188be7f1704719382510.jpg)
Start> Windows System> Command Prompt
Step by Step Solution
3.41 Rating (148 Votes )
There are 3 Steps involved in it
The text you provided outlines the steps to compile and execute a simple Java program using the Windows Command Prompt Heres a stepbystep breakdown of ... View full answer
Get step-by-step solutions from verified subject matter experts
