what is mean by method signature?

Answer Posted / geetha

speicfying access modifier, return type, method name,
arguments are called method signature
eg:

public void add(int a,int b)---method signature of the
method

public void add(int a,int b)
{
return (a+b);
}

correct me if i am wrong.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override final method?

577


What is private static class in java?

525


Can a constructor be protected?

542


How to make a class or a bean serializable?

548


Can I learn java in 3 months?

551






What is predicate in java?

569


What is a void method?

531


What is classes in java?

528


What is get () in java?

580


What are different access specifiers in java? Explain

639


Write a method that will remove given character from the string?

583


What's the default access specifier for variables and methods of a class?

525


Explain the difference between extends thread vs implements runnable in java?

547


How many types of equations are there?

552


What is an accessor?

1063