๐Ÿ“ข Too many exams? Donโ€™t know which one suits you best? Book Your Free Expert ๐Ÿ‘‰ call Now!

  • google app store apple app store
  • โœ–

      Question

      Which of the following is not a valid type of

      inheritance in Java?
      A Single Inheritance Correct Answer Incorrect Answer
      B Multilevel Inheritance Correct Answer Incorrect Answer
      C Hierarchical Inheritance Correct Answer Incorrect Answer
      D Multiple Inheritance through classes Correct Answer Incorrect Answer
      E Multiple Inheritance through interfaces Correct Answer Incorrect Answer

      Solution

      Java does not support multiple inheritance through classes to avoid the 'Diamond Problemโ€™. However, multiple inheritance effect can be achieved with the use of interfaces in Java.ย 

      Practice Next

      Relevant for Exams:

      ask-question