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 8184483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:31:10+00:00 2026-06-07T01:31:10+00:00

I understand that the language specification declares only single inheritance, but I’m puzzled over

  • 0

I understand that the language specification declares only single inheritance, but I’m puzzled over how this one example seems to break the rule.

If I write an Exception class, I’ll write:

public class MyException extends Exception {
    //class body
}

Only, if you look here, you’ll notice that the class Exception extends Throwable.

So to my mind, we have (the theoretical code example)

 public class MyException extends Throwable, Exception {
    //class body
 }

Why is this not so?

I suppose this is done the same way that every class extends Object but can also be subclassed once?

  • 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-07T01:31:12+00:00Added an answer on June 7, 2026 at 1:31 am

    There can be multiple levels in the hierarchy. A class may extend a class that itself extends another class (or implements an interface). This is not the same (in theory or in practice) as one class extending two classes itself.

    Interfaces in Java do provide much of the same functionality as multiple inheritance in other languages (because a class can implement multiple interfaces), but that’s not what you’re seeing here. This is standard single inheritance with multiple ancestor classes.

    It might help to picture a (biologically weird) family tree in which every child has exactly one parent. Those children may also have a grandparent, but never more than one node at any level of the structure.

    You’re imagining a structure that looks like this:

    A   B
     \ /
      C
    

    But it’s actually like this:

    A
    |
    B
    |
    C
    

    The most obvious difference is that changes to A do not affect instances of B in the first graph, but would impact B in the second.

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

Sidebar

Related Questions

I understand that the Go programming language doesn't really support dynamic linking. This makes
This question on my courswork that I could not understand. Q. The JAVA Language
I understand what print does, but of what type is that language element? I
I understand that this question may be subjective, this is why I need an
Before answering this question, understand that I am not asking how to create my
Please correct me if I am wrong but I understand that John McCarthy was
I understand that Exceptions are for exceptional cases [a], but besides just being repeated
I am currently trying to learn Javascript and understand that functions are one of
For years and years, I've tried to understand the part of Java specification that
In a CS course I'm taking there is an example of a language that

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.