A First Simple Program
/*
This is a simple program Call this file “Example.java”.
*/
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 “);
}
}
Entering the program
-The name of a source file is very important
-In Java, all code must reside inside a class. By convention ,the name of that class should match the name of the file that holds the program
-A source file use the .java filename extension
Compilling the Program
C:>\javac Example...