Breaking News

Java Hello World program Explained

Hello World in Java | Technotoken




 What is a Hello World Program?

 
" Hello World " is a simple program that gives us  Hello World!!! as output on the screen. It's a very simple program that is why it is often used by many instructors to introduce a new programming language to there Students .

Example 


Let's explore the Java " Hello World!!! " Program
 
// java hello world Program
  
public class HelloWorld 

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

Output

Hello World!!!

How "Hello, World!" program in Java Works?

// is used to represent a Comment. Comments are intended for users reading the code to understand the intent and functionality of that particular Code.

Public Keyword is an access modifier which represents visibility, it means visible to all.

Class Keyword is used to Declare a Class in java.

Static is a keyword, if we declare any method as static , it is also known as Static method.

Void is the return type of the method , it means it doesn't return any value.

Static[] args is used for command line argument.

Main represents startup of the program. 

System.out.Println() is used to print Statement which here is " Hello World!!! "


So this is it guys if you want us to write more on this topic or have any particular Query regarding this post you can always comment or feel free to mail us at our official mail also follow us on Instagram and Facebook to receive Latest Updates first.


Peace!!!