• Parth

What is the signature of a method in Java?


Method Signature consist of method name followed by arguments types.

Ex:- public static int m1(double d,int x)

in this example m1(double d,int x) will be treat as method signature

In java return type is not part of method signature but in C and C++ return type is part of method signature

for getting expertise in java visit Code Planet Jaipur.

web: www.codeplanet.co.in