Results 1 to 2 of 2
  1. #1
    veens4444 is offline Member
    Join Date
    Feb 2009
    Rep Power

    Thumbs down unchecked exceptions

    Hi friends,

    can we create userdefined unchecked exceptions or not

  2. #2
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Rep Power


    Yes. The definition, basically, of an unchecked exception in java is an exception that extends RuntimeException. So the following is an unchecked exception type:

    Java Code:
    public class UncheckedException extends RuntimeException{
         //constructors and extra methods
    If the above doesn't make sense to you, ignore it, but remember it - might be useful!
    And if you just randomly taught yourself to program, well... you're just like me!

Similar Threads

  1. unchecked or unsafe operations-Recompile with -Xlint
    By pronetin in forum Advanced Java
    Replies: 15
    Last Post: 05-31-2010, 05:41 PM
  2. Unchecked or unsafe operations warning
    By sky in forum New To Java
    Replies: 3
    Last Post: 12-06-2009, 04:41 AM
  3. Uses unchecked or unsafe operations message
    By Robbinz in forum New To Java
    Replies: 2
    Last Post: 12-06-2007, 11:56 PM
  4. UnChecked Exception
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-18-2007, 08:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts