Method Signatures

Like other languages, java also permits to work with the methods declarations and method definitions.

Method Signatures

--Ads--

Method Signatures

     

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)

For example  

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:

http://www.roseindia.net/java/master-java/index.shtml

http://www.roseindia.net/java/learn-java-in-a-day/class.shtml