Square CSS

Saturday, October 6, 2018

Learn Java : Java Hello World Example!

In this series of tutorials, we will learn java step by step.

Main Method!


Everything inside Java is written in class. The entry point of a Java program is public static void main(String[] args). The functions which are required to be loaded at the start of the Java application is written in the main method.

Print Hello World!

For printing hello world in Java user should write System.out.println("Hello World"); inside the main method. 

Input :


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


Output :



   Hello World                                                 


☛ Next >> Data Types In Java!
                      It specifies the type and size of a variable. They are grouped  ...

No comments:

Post a Comment

Some Algorithms

Algorithm: Tower of Hanoi

Tower of Hanoi consists of three towers called as pegs with n number of rings. Rings are of different size.  Conditions to be fulfill...

Popular Posts