Java Program to display “Hello, World !”



Write a program in Java to display “Hello, World !”





Program:





class
Sk01


 {


  public static void main(String args[])


   {





    System.out.println("Hello, World !");





   }


 }





Compile:


D:\>javac
Sk01.java





Run:


D:\>java
Sk01





Output:


Hello,
World !







0 Comments