HARDWARE & NETWORK

Tuesday, October 21, 2008

Starting A Java Program

At first glance, even the simplest java program involves a fair amount of confusing syntax. Consider the following simple program. This program is written on seven lines, and its only task is to print "First Java Program" on the screen.

public class First
{
public static void main(string[]args)

{
system.out.println("First java program")
}
}

The statement that does the actual work in this program is system.out.println("First java program") ;