So here is our first JAVA program :
public static void main (String args  )
System.out.print("Hello World!! This is my First Java Program");
The output of above given program is as follows, which can also be viewed in the image below.
Hello World!! This is my First Java Program
Here is the screenshot of the above program :
Note : Save the text file in which you will write the above code with the name of class and with .java extension, otherwise if you will use any name to save the file, then it will not be compiled by the compiler.