Compile and Run Java Admin October 16, 2016 Compile:Type ‘javac’ space file name ‘demo.java’ : D:\java-test>javac demo.javaRun:Type java space demo. will output Hello java!