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

it is an overriding because we are attempting to riding the already ride class(class B with class A)

Is This Answer Correct ?    2 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the Scope of Static Variable?

1278


What is the use of parseint in java?

1087


How do you calculate square roots?

1216


What is function and method in java?

998


What is Applet Stub Interface ?

2565


What is multi level inheritance in java?

1080


Explain the difference between abstract classes and interfaces in java?

1268


What does s mean in regex?

1070


Differentiate between vector and array list.

1117


Which containers use a flowlayout as their default layout in java programming?

1064


Explain jvm, jre, and jdk?

1057


How to convert string to byte array and vice versa?

1147


Can we create our own daemon thread?

1031


What is void in java?

1149


What class allows you to read objects directly from a stream in java programming?

1144