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

Differentiate between static and non-static methods in java.

1004


java Technical questions asked by JPMC

5002


What are examples of modifiers?

1030


Can we define constructor in inner class?

954


What are keywords and reserved words in java?

1009


Is zero a natural number?

985


Explain constructors and types of constructors in java.

1049


What is indexof?

925


What is super?

1065


Can a class be defined inside an interface?

987


What does @param args mean in java?

1023


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

1128


Why unicode is important?

900


What is the console in java?

1099


Why java is platform independent? Explain.

963