Like other languages, java also permits to work with
the methods declarations and method definitions. To define a method in java
we need to abide by the certain java syntax known as the method signature to
create a method within a class.
Methods in Object Oriented Programming plays a crucial role in achieving some functionality while defining a class.
|Access_Modifiers Return_Type Method_Name (List of Arguments with comma seperation)|
|public static void main (String ags )|
Here Access Modifier is public
Return Type is void
Method Name is main
List of Arguments with comma separation is String ags that indicates the command line arguments
read more at:
Recommend the tutorial