Difference between overloading and overridding?

Answer Posted / ravikiran

compile time polymorhism is named as overloading,and takes
place in the same class.Should have same method name but
must have different argument list.
Runtime polymorphism is named as overriding,and takes place
in diferent classes.Must have the same signature and
argument list including the order defined in the super
class.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name few "optional" classes introduced with java 8 ?

651


What is the use of parse function in java?

517


What is meant by class and object in java?

559


What is the best definition for data?

523


Explain purpose of sleep() method in java?

622






Can an abstract class be a final class?

531


Explain the selection sort algorithm?

648


What is java object name?

553


What is a default method?

527


What is empty string literal in java?

567


Why inputstreamreader is used in java?

556


Write a code to create a trigger to call a stored procedure

540


What does += mean coding?

517


Can we sort list in java?

608


how we can make a read-only class in java?

546