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

Explain 5 features introduced in jdk 1.7?

1033


What technique can be employed to compare two strings?

1119


Which data type is a class in java?

1013


How do you initialize an arraylist in java?

1055


Why do we need wrapper class?

1005


What are exception handling keywords in java?

1048


What does this mean java?

1125


What is the program compilation process?

1132


what is mutual exclusion? : Java thread

1034


is it possible to instantiate the math class?

1049


What is final, finally, finalize?

1120


what is meant wrapper classes?

1222


what is the significance of listiterator in java?

1088


Justify your answer that you can't define a method inside another method in java, if you can then how?

1191


Does list allow duplicates in java?

944