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 best way to findout the time/memory consuming process?

994


Can a static member function access member variable of an object?

970


How do you make a thread in java?

1054


How do you use equal in java?

1020


What is executor memory?

909


What does escaping a character mean?

964


What are dot operator queries?

1070


How many wrapper classes are there in java?

983


What do you mean by static variable?

1038


Is heap stored in ram?

916


What is default switch case? Give example.

970


List out benefits of object oriented programming language?

842


Which is fastest collection in java?

1020


What are the actions that can occur when a thread enters blocked state?

1022


What is mean by collections in java?

1109