what is mean by method signature?

Answers were Sorted based on User's Feedback



what is mean by method signature?..

Answer / priya

speicfying access modifier, method name,
arguments are called method signature only
if the return type differnent then also both are called as
same signatured if am not mistaken

Is This Answer Correct ?    7 Yes 0 No

what is mean by method signature?..

Answer / yogesh gandhi

Yes priya, you are right

Return type is not a part of the method signature.

Is This Answer Correct ?    4 Yes 0 No

what is mean by method signature?..

Answer / vijayakumar chinnasamy

Method signature means name of the method ,type of argument
and order of arguments.

The "return type" of method and "access specifier" are not
part of method signature.

Is This Answer Correct ?    3 Yes 0 No

what is mean by method signature?..

Answer / umesh

It means no. of arguments, type of argument ,order of data
type.

Is This Answer Correct ?    2 Yes 0 No

what is mean by method signature?..

Answer / shreya

The only required elements of a method declaration are the
method's return type, name, a pair of parentheses, (), and
a body between braces, {}.

Is This Answer Correct ?    0 Yes 0 No

what is mean by method signature?..

Answer / shreshta

Method signature: void name();
declaring method but not declaring the body of method

Is This Answer Correct ?    0 Yes 0 No

what is mean by method signature?..

Answer / 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

what is mean by method signature?..

Answer / ravi

any one tell the answer

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More Core Java Interview Questions

Explain about static nested classes in java?

0 Answers  


What is the frontend and backedn in Java?

3 Answers   TCS,


Similarity and difference between static block and static method ?

0 Answers  


What are the 6 mandatory procedures for iso 9001?

0 Answers  


What is Java Shutdown Hook?

0 Answers  






When should you make a function static?

0 Answers  


What is the old name of java?

0 Answers  


How do you convert bytes to character in java?

0 Answers  


What are the characteristics of java?

0 Answers  


What is a copy constructor in java?

0 Answers   Amazon,


11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.

6 Answers  


What is the difference between method overriding and overloading?

0 Answers  


Categories