In this page, we learn how to write a Simple java Program
First of all, are you know what are the requirement to write a simple java program. If you know then it's good but if you don't know then don't worry. Lets see the requirement
class Simple{
public static void main(String args[]){
System.out.println("Hii.. Java");
}
}
NOTE: A file name must same as class name. For example in this program if you save this file as Main.java then it produce error message.
So save this file as Simple.java
To Compile
javac Simple.java
To Execute
java Simple
Output:
Hii.. Java