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

What is an image buffer?

975


What is gc()?

1043


Explain super keyword in java.

1025


Can we write any code after throw statement?

1040


How do you delete a list in java?

936


Write code to implement bubble sort in java?

976


What is the byte range?

1019


What is meant by class and object in java?

1018


Can you explain the private protected field modifier?

1013


What is multithreading in java?

1042


What is collection sort in java?

923


Why there is no call by reference in java?

906


Can a abstract class be defined without any abstract methods?

982


What is polymorphism and what are the types of it?

971


I want to re-reach and use an object once it has been garbage collected. How it's possible?

1007