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.
No comments:
Post a Comment