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

How can you avoid serialization in child class if the base class is implementing the serializable interface?

1021


How do you trim a space in java?

918


Explain jdk, jre and jvm?

909


For class CFoo { }; what default methods will the compiler generate for you>?

1022


What is a lock or purpose of locks in java?

971


What is udp in java?

928


If you are given the name of the function at run time how will you invoke the function?

1077


Which collection is thread safe in java?

936


what is synchronization? : Java thread

967


What is time complexity algorithm?

987


What is the multi-catch block in java?

996


What is the difference between normal report & matrix report?

1052


How the metacharacters are different from the ordinary characters?

973


Explain the importance of finally over return statement?

991


How many inner classes can a class have?

992