Why is an Interface be able to extend more than one Interface but a Class can't extend more than one Class? Ans. Basically Java doesn't allow multiple inheritance, so a Class is restricted to extend only one Class. But an Interface is a pure abstraction model and doesn't have inheritance hierarchy like classes(do remember that the base class of all classes is Object). So an Interface is allowed to extend more than one Interface. - Study24x7
Social learning Network
17 Oct 2023 11:05 AM study24x7 study24x7

Why is an Interface be able to extend more than one Interface but a Class can't extend more than one Class? Ans. Basically Java doesn't allow multiple inheritance, so a Class is restricted to extend only one Class. But an Interface is a pure abstraction model and doesn't have in...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles