Below diagram visually explains the steps involved when writing, compiling, and executing a Java program using Notepad and CMD.
Below is detailed explanation:
public class MainApp
{
public static void main(String[] args)
{
System.out.println("Hello Deepak");
}
}
javac MainApp.java
java MainApp
System.out.println("Hello Deepak");
Hello Deepak
Your feedback helps us grow! If there's anything we can fix or improve, please let us know.
Weโre here to make our tutorials better based on your thoughts and suggestions.