Java OOPs Interview Questions and Answers
Question: Explain the 'diamond problem' and how Java solves it.Answer: The 'diamond problem' occurs in multiple inheritance when a class inherits from two classes that have a common ancestor. In Java, this is avoided by allowing a class to implement multiple interfaces. |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: