The descriptions that follow use the standard
java 2 SDK ( Software Development kit), which is available from
Sum Microsystems.
Click here to download . The First thing that you must learn about
java is that the name you give to a
source file is very important. Therefor, class name and program name should be same.
/*This is a simple java program.*/
class Example {
//Your program begins with a call to main().
public static void main(String args[]) {
System.out.println("This is a simple Java Program.");
}
}
Output:
This is a simple Java program.
No comments:
Post a Comment