HELLO WORLD PROGRAM IN JAVA -READY !! GET SET !! CODE

Hello guys !! 

Let me start the posts on Java programming with the legendary "Hello world" program.

/** This is a simple application in java to * print Hello World! message */
public class Hello ------
                                      declaration
{
public static void main (String[] args)  ---------
                                       argument
{
System.out.println("Hello World!");
           ---------- Print is method.

Let's see what this is : 

class : keyword is used to declare a class in java.
public: keyword is an access modifier which represent visibility, it means it is visible to all.
Static : static is keywords ,if we declare any method as static the main method is executed by create object to invoke the main method.
Void: The method of return type .it means it doesn't return any value.
Main: Is a entry point of the program. It is called by runtime   
system. string []args: Is used for command line argument.
system. out.println (): Is used print statement.







Thank-you all  !!!!

for more information follow us !!!!

Facebook: CLICK HERE!!!!!!!!!! 

Twitter: @NewAgeInformers

Instagram: @new_age_informers_

Comments