Explore Library
FlashcardBeginner

Compiling and Running Java

Use javac to compile source files and java to run the resulting class.

Question

How do you compile and run a Java program from the command line?

Click to reveal answer