What is the Command to Compile a Java Program?


(Lakshmi Prasanna) #1

To Compile a Java program in CMD, you can use the javac command followed by the file name. For example,

javac PrintHelloWorld.java