Free CoreJava Programs Source codes | Examples | Video Tutorials Download

Tuesday, January 20, 2009

Program For Print Welcome Message

/**
* Create the object of the class and use one method to print welcome message.
*/
class First
{
/**
* displays welcome message
*/
public void display()
{
System.out.println("Hello World!");
}

/**
* execution begin from here
* @param args : command line argument
*/
public static void main(String[] args)
{
new First().display();
}
}

No comments:

Post a Comment

Followers