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

Can a static class implement an interface?

1124


How to create a fecelet view?

987


Convert Binary tree to linked list.

1093


What is the difference between actual and formal parameters?

945


What is a heavyweight component?

1024


What is the current version of java?

1038


What about interrupt() method of thread class ?

1069


what is singleton class in java?

1054


Which methods cannot be overridden in java?

991


Can we define a package statement after the import statement in java?

1066


What are the two ways to create a thread?

1008


Describe string intern() methodology

1063


What is a website container?

954


Does constructor creates the object ?

1037


What are the types of exceptions?

1059