Write a Program of Hello World in Java

 

 Hello World! Program in Java


Steps are as follow:-


1. Open a notepad File.

2. Write the code given below in your File and save the file with name First.java.

class First

{


public static void main(String arg[])
{
System.out.println("Hello World !,This is my First Java Program");
}

}



3. Now compile the file by using command prompt.To open command prompt write cmd on run.









Comments

Popular posts from this blog

Java Project Code: Cinema Ticket booking system : Create a Java Application to book a ticket in a Cinema hall.