File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Features new in Java 8 and the fly likes For Richard Reese: multiple inheritance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Features new in Java 8
Bookmark "For Richard Reese: multiple inheritance" Watch "For Richard Reese: multiple inheritance" New topic

For Richard Reese: multiple inheritance

Martin Bechtle
Ranch Hand

Joined: Nov 17, 2011
Posts: 34
Hello, I just looked at the description and table of contents of your book. I noticed that you cover the new multiple inheritance feature. I was wondering what your thoughts are on such a new feature in Java, as multiple inheritance has always been seen as something bad as it leads to bad software architecture and difficult compiler implementation.
Richard Reese
Ranch Hand

Joined: Jul 13, 2011
Posts: 84


Thanks for the question. Multiple inheritance between interfaces has always been possible. Multiple inheritance between classes has not been, and is still not possible in Java. The introduction of default methods in Java 8 has complicated the multiple inheritance between interfaces but it is not that hard to understand.
To answer your question, I don’t have strong feelings about whether this addition to Java is good or bad. As with most language features, it can be abused, misused or made difficult to understand. If the benefit of using multiple inheritance outweighs the potential maintenance issues, then it is probably worth the effort.


Richard Reese
Java 8 New Features: A Practical Heads-Up Guide
I agree. Here's the link:
subject: For Richard Reese: multiple inheritance
It's not a secret anymore!