Syntax of JAVA

Syntax of Java;
 class Easy   
 {  
  public static void main (String [] args)   
   {   
    System.out.println("Hello World");   
   }   
 }   
 
1. Class;

Class is a keyword that is used to declare a class.
Keyword: It is the word that is predefined in the library is called keyword. For example, class, void, main etc. 


2. Easy; This is a user defined class name.
 
3. Public; 

This is a keyword that can be called as access Specifier/modifier.
This can be used to provide the accessibility of member function(function) and data member(variable). 

4. Static; 

This is also a keyword.
This can be used along with a variable/function/block. 

5. Void; 

Void is a keyword, which indicates that no value is returning by the function.
If you use any other keyword like int,float,char etc instead of void then you have to use return keyword. 

6. Main ()1; 

This is the function that is called as the entry point of every program. The execution of the program begins from the main function.
If there is only one function then it must be the main function.

7. String [] args1; 

This is an array of string type. It can be also called as command line argument.
You can write anything in place of args.

8. System.out.println;

This can be used to print the data/information on the output screen.
System. Out stands for “Standard output object "and the println is a method/function.

For Videos Join Our Youtube Channel: Join Now

Thank you!!