Our website is made possible by displaying online advertisements to our visitors.Please consider supporting us by disabling your ad blocker.
Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu
Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Translate it in your own Language

Print this Job Post

Print Friendly and PDF

Tuesday, May 27, 2014

Core Java – OOPs Concepts: Polymorphism Interview Questions

Question-53: What is Runtime Polymorphism?
Answer:


  • Runtime polymorphism or dynamic method dispatch is a process in which a call to an overridden method is resolved at runtime rather than at compile-time.
  • In this process, an overridden method is called through the reference variable of a superclass. The determination of the method to be called is based on the object being referred to by the reference variable.


Question-54: Can you achieve Runtime Polymorphism by data members?
Answer:
No.


Question-55: What is the difference between static binding and dynamic binding?
Answer:
In case of static binding type of object is determined at compile time whereas in dynamic binding type of object is determined at runtime.

Core Java – OOPs Concepts : Abstraction Interview Questions

No comments:

Post a Comment

Copyright @ CrackMNC 2014-2024
Divas Nikhra Theme by Crack MNC