What is the difference between overloading and overriding a
function?

Answer Posted / suganthi

Over Loading : when two or methods share the same name but
paramater declaration are diffierent with in a class.
(ex:Compile time polymorpism)

Over ridding: when two or methods share the same name but
paramater declaration are also same in different classes.
(ex:run time polymorpism)

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a JAR file?

596


What is a numeric literal?

527


List the interfaces which extends collection interface?

537


What are the elements of java?

563


Why strings in java are called as immutable?

591






What is an class?

593


What is prefix of a string?

575


Difference between final and effectively final ?

639


What is an empirical question?

542


What is anagram of a string?

519


What is boolean logic?

561


Is java ee a framework?

520


What are java threads?

623


Can we change the value of static variable?

501


Can static method access instance variables ?

598