First Java Program using Notepad
We must follow the steps given below to run a Java program.
Open the notepad and write a Java program into it.
Save the Java program by using the class name followed by .java extension.
Open the CMD, type the commands and run the Java program.