Checked and unchecked exception

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anurag275125
    New Member
    • Aug 2009
    • 79

    Checked and unchecked exception

    Hello all..
    I wanna know- is there concept of checked and unchecked exception in java or not? I didn't found any reference about this.
    please help me out..
    thanks in advance...
  • anurag275125
    New Member
    • Aug 2009
    • 79

    #2
    Checked exception are the exception that are derived from the Exception class, i.e ClassNotFoundEx ception, and IOException. These exceptions are caught at compile time.

    Unchecked exceptions are the exceptions that are derived from the RuntimeExceptio n class, i.e. ArithmeticExcep tion, NullPointerExce ption etc. They are caught at run-time.

    Comment

    • ThatThatGuy
      Recognized Expert Contributor
      • Jul 2009
      • 453

      #3
      Ya You're Right..... in JAVA there are concepts of checked and unchecked exceptions

      Comment

      • anurag275125
        New Member
        • Aug 2009
        • 79

        #4
        thank you very much eliza...

        Comment

        Working...