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  >  Placement Papers  >  Oracle  >  Java

 Print  |  
Question:  what will be the return type of the below overloaded method

public void example(int x) {

a) int
b) char
c) short




January 01, 2007 01:19:33 #3
 shaik   Member Since: Visitor    Total Comments: N/A 

RE: what will be the return type of the below overload...
 
Overloading never concerns with return type. Even if the method "void example(int x)" is overloaded with different  parameters and  no. of parameters the return type is same i.e void mean nothing it is returning.
     

 

Back To Question