![Free-eBooks.net](/resources/img/logo-nfe.png)
![All New Design](/resources/img/allnew.png)
class exampleprogram
{
public static void main(string args[ ])
{
System.out.println(“Hail The World !”);
}
}
In the above program, the first line
class exampleprogram
{public static void main(string args[ ])class exampleprogram {System.out.println(“Hail The World
declares a class named exampleprogram, where class is the reserve word.
The Static definition declares that the very function or method is independent of the entire class
and does not figure as a part of any objects of the class. In the above program, the class
exampleprogram is unchanging or static, as a state. The term static means unchanging and implicitly final.