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 is the difference between overloading and overriding a
function?

Answer Posted / ankur dhoot

In overloading two function should have different signature
but overriding show have exactly same signature.

Overloading generally happens in same class but overriding
mandatory requires super and sub class to happen.

Compiler decides overloading at compile time but overriding
is detected at run time.

Overloading is called static polymorphism while overriding
is called dynamic polymorphism.

Is This Answer Correct ?    53 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a jagged array in java?

1106


What is "this" keyword in java? Explain

1097


Difference between final and effectively final ? Why is effectively final even required ?

985


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

967


What is the purpose of the main method?

988


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1051


How do you write a conditional statement?

955


Convert Binary tree to linked list.

1084


Is int primitive data type?

946


Where to store local variables?

1097


Name few java util classes introduced with java 8 ?

909


What are java threads?

1125


How do you create a method in java?

996


Can we overload destructor in java?

988


What is methods in java?

1001