Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

class A
{
public void disp(int a,int b)
{
System.out.println("hai");
}
}
class B
{
public void disp(int a,int b,int c)
{
System.out.println("hai");
}
}

above program is overloading or overriding?

Answer Posted / shrirang & chetak

yes, above program is overloading the disp() method

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can any body body expalin best definitions & best real time exaples for opps concepts.

2269


What are the uses of java?

1093


Give few difference between constructor and method?

966


What are the various access specifiers for java classes?

1058


Tell us something about an iterator.

963


If an application has multiple classes in it, is it okay to have a main method in more than one class?

1013


Why java does not support pointers?

1044


Which collection is sorted in java?

1034


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

9210


What is object english?

1061


State some situations where exceptions may arise in java?

1060


What is the constructor?

1059


Is null a string or object in java?

970


Why is whitespace important?

1081


What is arrays sort in java?

966