Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: checked or unchecked exception when Throwable is extended

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    4
    Thanks
    0
    Thanked 1 Time in 1 Post

    Question checked or unchecked exception when Throwable is extended

    Hi
    Suppose a user defined exception class, say UserExcp is created by extending the Throwable class.
    What type of exception it will be checked or unchecked and why?


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: checked or unchecked exception when Throwable is extended

    I wouldn't consider it either, it is not an exception if it does not extend the Exception class.

    However, it must be handled accordingly (i.e. surrounded with a try/catch block or use a throws declaration, same as a checked exception).

Similar Threads

  1. Unchecked or Unsafe Operations
    By saxophonemaster in forum Collections and Generics
    Replies: 2
    Last Post: April 12th, 2011, 05:40 AM
  2. Unchecked or Unverified Warning
    By saxophonemaster in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 2nd, 2011, 09:59 PM
  3. Extended Hanooi Tower
    By mahsa in forum Algorithms & Recursion
    Replies: 1
    Last Post: December 31st, 2010, 05:55 PM
  4. retain checked status of checkbox
    By rahulj5 in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: November 29th, 2010, 12:10 AM
  5. Imitating a JFrame extended program with JPanel; help needed...
    By emigrant in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 15th, 2010, 02:30 PM