Compile and Run Java

Compile:

Type ‘javac’ space file name ‘demo.java’ : D:\java-test>javac demo.java

cmd-window-3

Run:

Type java space demo. will output Hello java!

cmd-window-4

Leave a Reply

Your email address will not be published. Required fields are marked *