Difference between overloading and overridding?

Answer Posted / j.winston britto

Overloading means,
More than one method have same name and every one
differ in no. of arguments,type of arguments in a class.

Overridding means,
methods having same name and type in different
classes.In this we can use "super" key word

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any limitation of using inheritance?

822


Are maps ordered java?

720


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

740


What is the use of volatile in java?

824


When can you say a graph to be a tree?

856


Can we assign null to double in java?

782


What do you know about the garbate collector?

810


What are the disadvantages of object oriented programming?

878


Can we override the overloaded method?

817


What is indexof?

741


What is the exact difference in between Unicast and Multicast object?

1786


How do you execute a thread in java?

732


What do you mean by thread safe?

777


What is hotjava?

758


What are the steps in the jdbc connection?

782