Program.in

By Santosh Wadghule

Simple Java Program

leave a comment »

public class MyFirstApp
{
public static void main ( String[] args)
{
System.out.println("Hello World");
} // main method
} // MyFirstApp class

1] public is for that everyone can access it.
2] MyFirstApp is the name of class.
3] String[] for arguments to the method. This method must be given an array of Strings,and the array will be called ‘args’.

Written by Santosh Wadghule

August 9, 2007 at 5:57 pm

Posted in Java, Uncategorized

Leave a Reply