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

Restriction imposed on Method Overloading are
a) should done with in a same class.
b) it should have same name of overloading method.
c) its arguments or parameter should be different
irrespective of return type.

Restriction imposed on Method Overriding are
a) should done with its derived class
b) should have same name of parent method and arguments
too.

Is This Answer Correct ?    34 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If goto and const is reserve words than why it is not work in java?

2025


What is a functional interface?

1091


What kind of variables can a class consist?

1100


Can static methods access instance variables in java?

1144


What are the different types of multitasking?

1146


Does java support function overloading, pointers, structures, unions or linked lists?

1160


What is namespace in java?

1060


Explain about procedural programming language or structured programming language and its features?

1169


What is replaceall in java?

1079


Tell me how many ways are there to initialise an integer with a constant.

1154


How do you define a variable?

992


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1159


What are voids?

1019


Is math an abstract class in java?

1077


Why are the objects immutable in java?

1052