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

Which class is the superclass of all classes?

1105


Explain how to convert any java object into byte array.

966


Explain about serializable interface in java?

992


Can a main method be declared final?

1052


What the difference is between execute, execute Query, execute Update?

828


Which variables are stored in stack?

893


What is proper subset?

973


Why parsing is done?

976


Is space a character in java?

1003


What is a ternary operator in java?

975


Which class is the superclass for every class in java programming?

990


What are the differences between checked exception and unchecked exception?

959


How do you allocate memory to object?

983


How a string is stored in memory?

1004


What are loops in java?

1248