Printing Hello In Java


How to Print Hello Statement in Java



 Hello Welcome to Java Programming,
In this post You can learn how to print a Hello Statement in java.let's start

How to Print a statement in java ?

Here is the Solution
 To print any statement through the following syntax

System.out.println("Statement to be print");

This syntax is used to print any statement in java.

Printing Hello in java

The following Java Program is to print "Hello" 
import java.util.*;
public class Hello
{
      public static void main(String ar[])
      {
          System.out.println("Hello");
       }
}

I hope This program will help you to learn how to print  a statement in java.
if you have any doubt or suggestion tell me. 

Comments

Unknown said…
thanks sir...it helps me lot...it is one of the unknown thing