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

Explain method overloading and overriding?

Answer Posted / priyabrata patro

Method overloading happens in class with same method name but by modifying below features
1> By changing number of parameters
2> By changing ordinal position of parameter , i mean to say here is by changing datatype place.
And method overriding happens in two or more than two class , i mean defining same method declaration without any modification within two class and among of that two class , one class must extend another class and further also you can override this method , and this procedure continues till one subclass leaves overriding this method.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we access the non-final local variable, inside the local inner class?

1080


What is the difference between an inner class and a sub-class?

1067


What is variable declaration and definition?

1063


What is the difference between a window and a frame in java programming?

1199


Which package has light weight components in java programming?

1193


Which non-unicode letter characters may be used as the first character of an identifier?

1054


Why java is call by value?

1084


What does java edition mean?

1265


What is the use of java?

1013


What is ternary operator?

1061


Is set thread safe java?

984


Is age a discrete variable?

1037


When a byte datatype is used?

2349


Is integer passed by reference in java?

1068


Does every java program need a main?

1032