What is the command to compile a Java program?

What is the command to compile a Java program?
Answer
The code written in Notepad is correct. It is okay. You have to write for compiling : javac filename.java and for running: just filename. Once you are in the correct directory, you can compile the program by typing “javac filename.java” into the command line and pressing enter.
 

Tìm kiếm

Back
Top