ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is mean by method signature?
 Question Submitted By :: Ravi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is mean by method signature?
Answer
# 1
any one tell the answer
 
Is This Answer Correct ?    1 Yes 2 No
Ravi
 
  Re: what is mean by method signature?
Answer
# 2
Method signature means method name and parameter list and also 
order of the parameter these three define's the mathod
signature
 
Is This Answer Correct ?    0 Yes 1 No
Neha Rajpal
 
 
 
  Re: what is mean by method signature?
Answer
# 3
method signature means:-
1. Name of method.
2. Type of arguments.
3. Number of arguments.
4. Order of arguments.
 
Is This Answer Correct ?    5 Yes 0 No
Chandmanik20@gmail.com
[Exact Soft(I) Pvt. Ltd.]
 
  Re: what is mean by method signature?
Answer
# 4
method signature means defind the method in diff signature 
diff no arguments
diff datatype if arguments
diff sequence of arguments
for example

public class PolyOverload1 
{
   public int iEmpNo;
   protected double dbSalary;
   private boolean boolPermanent;
   String strEmpName;

   public PolyOverload1()
   {
      System.out.println("PolyOverload constructor");
      iEmpNo = 1001;
      strEmpName = "Base Employee";
      dbSalary = 20000.500;
   }

   public void getEmpDetails()
   {
      // to print the employee details
      System.out.println("Emp no : " + iEmpNo);
      System.out.println("Emp name : " + strEmpName);
   }

   //no of arguments difference
   public void getEmpDetails(int eno)
   {
      //to print the employee details
      System.out.println("Emp no [getEmpDetails(int eno)]
 : " + eno);
      System.out.println("Emp name [getEmpDetails(int 
eno)] : " + strEmpName);
   }

   //different type of data type 
   //note : return type can be different for overloading
   public int getEmpDetails(String ename)
   {
      // to print the employee details
      System.out.println("Emp no [getEmpDetails(String 
ename)] : " + iEmpNo);
      System.out.println("Emp name [getEmpDetails(String 
ename)] : " + ename);
      return iEmpNo;
   }

   //no of arguments difference
   public void getEmpDetails(int eno, String ename)
   {
      // to print the employee details
      System.out.println("Emp no [getEmpDetails(int eno, 
String ename)] : " + eno);
      System.out.println("Emp name [getEmpDetails(int eno, 
String ename)] : " + ename);
   }

   //different seguence type of data type
   public void getEmpDetails(String ename, int eno)
   {
      // to print the employee details
      System.out.println("Emp no [getEmpDetails(String 
ename, String eno)] : " + eno);
      System.out.println("Emp name [getEmpDetails(String 
ename, String eno)] : " + ename);
   }

   public static void main (String arg[])
   {
      //Object creation 
      PolyOverload1 polyObj = new PolyOverload1();
      //static binding or early binding...during compile 
time JVM will find that the method's reference to call
      polyObj.getEmpDetails();
      polyObj.getEmpDetails(1002);
      polyObj.getEmpDetails("Test Employee1");
      polyObj.getEmpDetails(1003, "Test Employee2");
      polyObj.getEmpDetails("Test Employee3", 1004);
   }
}
 
Is This Answer Correct ?    0 Yes 1 No
Vikneswarank
[Jadian]
 
  Re: what is mean by method signature?
Answer
# 5
It consists of method name and type of the parameters

void sum(int a,int b){}

sum(int,int) is the method signature

In a class we cannot have two methods with the same method 
signature
 
Is This Answer Correct ?    2 Yes 0 No
P.nandakishore
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is the difference between HashMap and Hashtable Value-Labs8
What is meant by controls and types?  1
is memory to the abstract class allocated ..or objects not instantiated TCS4
I have one POJO class(Java bean class), it has two variables for that it has setters and getters. Now i have created two objects for that class and i have set the data for those variables through this two objects. Now question is i want check whether those two objects have same data or not, for this write a program? Thanks, Bose. Oracle2
What is the difference between abstract class and interface?  2
Hi, This is ravi i have a question like this i have string "UNDERSTAND" now i want to count the letters how many times it occures.i.e from the above string the out put should be like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1. how can i achieve this Thnaks in advance for your response ..  4
Same common question what is Map,Set,HashMap,List???? Symphony3
Is ResultSet class? Bally-Technologies2
class A{ class B{ } } in which name u save the file,its the program compile? HCL6
What are Inner classes?  3
Differentiate constructor and a method and how are it be used? Wipro5
what is Inheritense Tech-Mahindra1
types of applets?. TCS3
In Serialization, whether you will use Static variables? HCL2
What primitive Java types? Howmany are they and what are their names?  3
What do you mean by Remote procedure call?  2
What are the interfaces defined by Java.lang package?  1
What are integer overflows and underflows and how to handle them? Wipro2
what is the use/perpose of having a method antive?  2
Default layout of panel and frame?  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com