Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8320783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:46:48+00:00 2026-06-08T22:46:48+00:00

Possible Duplicate: Why there is no multiple inheritance in Java, but implementing multiple interfaces

  • 0

Possible Duplicate:
Why there is no multiple inheritance in Java, but implementing multiple interfaces is allowed

Every answer I have seen so far regarding “Why Java has no multiple inheritance” has only one answer in more specific or detailed way that is “To reduce complexity” but no one defined how it reduces complexity, If we use interface instead of class what difference it makes.Isn’t it one and a same thing? what is the difference if we implement an interface and not extend our class?Some one answered with Diamond problem but interfaces can also produce diamond problems.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T22:46:50+00:00Added an answer on June 8, 2026 at 10:46 pm

    The difference between multiple inheritance among interfaces vs. classes is when you must inherit implementation. When you inherit method interface through multiple paths, you can say that the implementing class must implement the inherited method. When you inherit from multiple classes, you must decide which of the several implementations to choose. This increases the complexity of the language very significantly, as you can see by examining the way multiple inheritance is implemented in C++.

    Here is an illustration:

    public class Base {
        public void foo() {System.out.println("base");}
    }
    public class A extends Base {
        public void foo() {System.out.println("a");}
    }
    public class B extends Base {
        public void foo() {System.out.println("b");}
    }
    public class AB extends A, B /* imagine that it's a possibility */{
    }
    

    What is going to happen when you do this?

    AB ab = new AB();
    ab.foo();
    

    With inheritance of interfaces, AB would have to implement foo; with inheritance of implementation, the language would need to decide, or provide you a way to specify it yourself. One way or the other, the complexity is going to grow.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Why there is no multiple inheritance in Java, but implementing multiple interfaces
Possible Duplicates: Why does Java allow multiple inheritance from interfaces but not from abstract/concrete
Possible Duplicate: WHY an Anonymous class in Java can't implement multiple interfaces directly? Simply
Possible Duplicate: How to return multiple objects from a Java method? Is there any
Possible Duplicate: Is there any hash function in PL/SQL? I have a column with
Possible Duplicate: Is there any working memory profiler for Python3 I have some script
Possible Duplicate: Is there a difference between single and double quotes in Java? I've
Possible Duplicate: Catch multiple Exceptions at once? Is there any way in C# to
Possible Duplicate: Why do multiple-inherited functions with same name but different signatures not get
Possible Duplicate: Python: simple list merging based on intersections I have a multiple list:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.