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...

The following program is Overloading or Overriding?
public class PolymorphismEx {
public int sampleMethod(int a) {
return a;
}

public String sampleMethod(int a) {
return "Is it Overloading or Overriding???";
}
}

Answer Posted / venkat asha reddy

it is neither overloading nor overriding. it throws method
ambiguity exception while compiling

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is boolean a wrapper class in java?

1051


Why Java doesn’t support multiple inheritance?

1036


Is there any case when finally will not be executed?

950


Can we override data members in java?

1139


What is a double?

1098


Which package has light weight components?

990


What are the types of relation?

1042


What are decalarations?

1119


Is arraylist a class in java?

1062


What is final access modifier in java?

1138


What is a platform?

1069


When does a class need a virtual destructor?

1010


What does system.gc() and runtime.gc() methods do?

1045


Give me some null interfaces in java?

1052


What is thread safe java?

914