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

What restrictions are placed on method overloading and
method overriding?

Answer Posted / aditya mohata

in method overloading we hav to hav the methods in the same
class n they hav to hav diff signatures so as to avoid
ambiguity.they hav to hav the same method name.

in method overriding we hav to hav the same name of the
methods n hav to hav them in different classes with same
signatures.

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is supplier in java?

954


What is the maximum size of byte array in java?

955


Is void a wrapper class?

885


Difference between error and exception

5901


What are the disadvantages of object oriented programming?

1172


What is the use of toarray () in java?

1001


What does n mean in java?

923


Difference between this() and super() in java ?

1024


What is the multi-catch block in java?

997


Explain what access modifiers can be used for methods?

1030


How do you take thread dump in java?

942


What happens when main () method is declared as private?

1084


Can we access instance variables within static methods ?

1033


How to find the index of the largest number in an arraylist java?

961


Does every java program need a main?

938