GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  Java

 Print  |  
Question:  What restrictions are placed on method overloading

Answer: Two methods may not have the same name and argument list but different return types.


September 09, 2005 05:26:46 #2
 depiks   Member Since: Visitor    Total Comments: N/A 

restrictions on method over loading
 
Two methods must have same name with different argument list , different return types. Only different return types is not sufficient.
     

 

Back To Question