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

What is thread life cycle?

1028


What is nullpointerexception?

1116


Objects or references which of them gets garbage collected?

1010


What makes a function well defined?

1034


Does anyone still use java?

1162


What is use of arraylist in java?

1240


What is the difference between an inner class and a sub-class?

1064


What do you mean by object?

1032


What is anonymous inner class?

1121


What are passing parameters?

1141


Can a abstract class be defined without any abstract methods?

1055


What is the purpose of the enableevents() method in java programming?

1271


Explain about java sdk?

1082


Can there be an abstract method without an abstract class?

1007


What is the base class of all exception classes in java?

1105