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 / arun

Since two class are not in a not related to each other so
this is neither overloading nor overriding

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a container in a gui?

977


What are recursive functions? Give some examples?

1185


What is the maximum size of hashmap in java?

988


Why do I need to declare the type of a variable in java?

1061


explain different ways of using thread? : Java thread

1002


what is instanceof operator used in java?

1022


Why is the main method declared static?

1121


Is string a class?

1018


what is daemon thread and which method is used to create the daemon thread? : Java thread

961


Why java is a platform independent? Explain

1072


What is an infinite loop? How infinite loop is declared?

1097


Can we override the static methods?

1025


How do you check whether the list is empty or not in java?

972


What is public/private protected in java?

1037


Why singleton class is used in java?

1118