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

What are the different types of multitasking?

1101


What is the difference between char and char *?

1071


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

961


What is difference between calling start() and run() method of thread?

1122


How do you declare a destructor in java?

991


What is a constructor, constructor overloading in java?

997


In which order the iterator iterates over collection?

988


How is the marker interface used in Java?

1094


Why is multiple inheritance not supported in java?

1025


What is the purpose of the strictfp keyword?

1155


What is static data type in java?

1028


How do you remove all elements from an arraylist in java?

1020


What is a method signature java?

1045


What does s mean in regex?

1010


What is the difference between static and global variables and also define what are volatile variables?

1043