why is java.lang.Throwable a class?

Posted by mdma on Stack Overflow See other posts from Stack Overflow or by mdma
Published on 2010-05-23T00:45:54Z Indexed on 2010/05/23 0:50 UTC
Read the original article Hit count: 343

In java adjectives ending in -able are interfaces Serializable, Comparable etc... So why is Throwable a class? Wouldn't exception handling be easier if Throwable were an interface?

Obviously, changing it now is out the question. But could it be made abstract? Wouldn't that avoid the bad practice of throw new Throwable();

© Stack Overflow or respective owner

Related posts about java

Related posts about exception-handling