what do you meant by Runtime Polymorphism?

Answer Posted / sayali birari

Dynamic dispatch is a mechanism by which a call to Overridden function is resolved at runtime rather than at Compile time , and this is how Java implements Run time Polymorphism. In dynamic method dispatch,super class refers to subclass object and implements method overriding.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is parsing a string?

606


What is keyword and identifier?

668


You're given a Boolean 2D matrix, can you find the number of islands?

617


Why declare Main() method as a static in java ?

612


What's the default access specifier for variables and methods of a class?

527






Which of the classes will have more memory allocated?

563


Is there is any difference between a scrollbar and a scrollpane?

575


How to sort an array in java without using sort method?

537


What is ternary operator? Give an example.

619


What are the kinds of polymorphism?

624


How to store image in arraylist in java?

526


Explain the importance of throwable class and its methods?

581


What is a programming object?

569


Is ++ operator thread-safe in java?

651


Can we call the constructor of a class more than once for an object?

641