In this tutorial, we are going to write a Simple Java program example in Java Programming with practical program code and step-by-step full complete explanation.

Simple java program example


Simple Java program example.

 
class Hello
{
    public static void main(String args[])
    {
        System.out.println("Welcome to Java!");
    }
}


Output

 
Welcome to Java!