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:

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)

Start> Windows System> Command Prompt

Step by Step Solution

3.41 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction To Programming With Java A Problem Solving Approach Questions!