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 matcher in java?

1042


what do you mean by marker interface in java?

1020


Does .length start 0 java?

1062


What do the thread?class methods run() and start() do?

1075


I want to persist data of objects for later use. What is the best approach to do so?

1102


Is string pool garbage collected?

1068


Explain the scope or life time of class variables or static variables?

1038


How do you square a number?

1345


What is use of map in java?

1057


What are the benefits of immutable objects?

1055


Why we cannot override static method?

1119


What is the purpose of object oriented programming?

1033


How do you compare objects in java?

1012


What is internal iteration in java se 8?

1256


What is the difference between pass by reference and pass by pointer?

1175