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 differences between heap and stack memory?

1076


What is main function purpose?

1029


What is the difference between break and continue statements?

1033


Which class is the superclass for all the classes?

1019


How can you generate random numbers in java?

1047


Can abstract class have private constructor?

936


What is the difference between preparedstatement and statement in java?

1138


Is java 11 paid version?

981


Which of the following is not an isolation level in the JDBC

2121


What is compareto () in java?

970


What is the difference between static method and instance method in Java?

1197


What is the major difference between linkedlist and arraylist?

1036


What is the escape character in java?

976


Can we have two methods in a class with the same name?

1049


What are the types of web technologies?

1042