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 are the important features of Java 9 release?

1048


What is the method to declare member of a class static?

1050


What are the different conditional statements?

1045


What are register variables what are the advantages?

936


What is a conditional equation?

1095


Explain 5 features introduced in jdk 1.7?

1058


How we can skip finally block of exception even if some exception occurs in the exception block in java?

992


Why is multithreading important?

992


Can a constructor be private and how are this() and super() method used with constructor?

1047


What is the difference between int and integer in java?

1077


Why multiple inheritance is not supported by java?

1020


What is java jit compilers?

1057


What is nextint java?

1126


What are 3 boolean operators?

1048


What is a class object?

1012