public class HelloWorld{
	public static void main(String[] args){
		System.out.println("Hello, World");
	}
}



Note:

  1. javac requires file extension .java
  2. java should not be provided file extension .class
  3. javac automatically follows dependencies and compiles all classes required.