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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:44:51+00:00 2026-05-17T16:44:51+00:00

I am asked by one of colleague about the Throwable class in java API.

  • 0

I am asked by one of colleague about the Throwable class in java API.

As per standard, I do understand, every word ending *able is a interface in java API. There is a industry standard about using such words as Interface names. So, I unknowingly, told him about this as base interface for all the exception and error types in java world. Then he shows me the java file for this class.

My questions:

  1. Why java people has choosen this name to be a class. I think this should have been a interface by default?

  2. Is this a pattern to use *able words as interface?

  3. Is there any other example of class ending with *able?

Regards.

  • 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-05-17T16:44:51+00:00Added an answer on May 17, 2026 at 4:44 pm

    It’s very common for those ‘-able’ names to be interfaces in Java, but there is no official convention for interface naming that I’ve found that suggests that ‘-able’ names should be interface names, though typically that is the case.

    Official Java naming conventions can be found here – it’s pretty lean, there really aren’t any restrictions for class or interface naming:

    • http://www.oracle.com/technetwork/java/codeconventions-135099.html#367

    As to your Throwable question, James Gosling once answered why it’s a class rather than an interface, even though the name was more fitting for an interface.

    Unfortunately, the original article from Sun/Oracle’s site has vanished into the internet ether, so I can only provide indirect attribution:

    • http://c2.com/cgi/wiki?JavaExceptionQuestion
    • http://www.ibm.com/developerworks/forums/thread.jspa?threadID=58994&tstart=45

    edit: Since I continue to get upvotes to this question, I found the link to the Sun discussion via the Wayback Machine, here: http://web.archive.org/web/20071013225816/http://java.sun.com/features/2002/03/gosling.html?source=jdc_news&date=20020430

    JDC: Why is Throwable not an interface? The name kind of suggests it should have been. Being able to catch for types, that is, something like try{}catch (), instead of only classes. That would make the Java programming language much more flexible.

    JG: The reason that the Throwable and the rest of those guys are not interfaces is because we decided, or I decided fairly early on. I decided that I wanted to have some state associated with every exception that gets thrown. And you can’t do that with interfaces; you can only do that with classes. The state that’s there is basically standard. There’s a message, there’s a snapshot, stuff like that that’s always there. and also, if you make Throwable an interface the temptation is to assign, to make any old object be a Throwable thing. It feels stylistically that throwing general objects is probably a bad idea, that the things you want to throw really ought to be things that are intended to be exceptions that really capture the nature of the exception and what went on. They’re not just general data structures.

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

Sidebar

Related Questions

I asked a couple of coworkers about AnkhSVN and neither one of them was
I recently asked a question about tracing Linq-to-Entities I think that one of the
A related question to one I asked earlier ... Just checking on something: Should
This query is related to this one I asked yesterday. I have a radio
One of the responses to a question I asked yesterday suggested that I should
Similar questions to this one have been asked but none seem to address my
On more than one occasion I've been asked to implement rules for password selection
Liu Chang asked a very similar question to this one here, Linux equivalent of
I've asked this question to the forums on the Mootools website and one person
This is also a question that I asked in a comment in one of

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.