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

class A and class B have same function name but different
arguments.overriding is possible only when both class A and
class B have same function name and same arguments.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out five keywords related to exception handling ?

1018


Why enumeration is faster than iterator?

935


What is class array in java?

1051


Does java support Operator Overloading?

1040


Can we sort arraylist in java?

992


How do you escape a string?

990


What is a consumer in java?

1014


Is vector ordered in java?

994


can java object be locked down for exclusive use by a given thread? : Java thread

1098


What do you mean by exception handling in Java?

1294


How does system arraycopy work in java?

1118


Why does it take so much time to access an applet having swing components the first time?

1924


How to compare two strings in java program?

1049


What does int argc char * argv [] mean?

995


Can we use both this () and super () in a constructor?

1004