Java hello world program | Hello world Java program | Java code to print hello world

 Java hello world program | Hello world Java program | Java code to print hello world

 /* write a hello world program in java java first program */  
public class HelloWorld 

{

  public static void main(String args[])
   {
      System.out.println("Hello World");

 /*"Hello World" is passed as an argument to println method, you can print whatever you want(Like "Hey whatsapp") and other as you want).System is a class, out is object of PrintStream class and println is the method*/

   }
}

Related Posts