What is difference between Checked Exception and Unchecked Exception?
Page 1 of 1
What is difference between Checked Exception and Unchecked Exception?
1)Checked Exception:
The classes that extend Throwable class except RuntimeException and Error are known as checked exceptions e.g.IOException,SQLException etc. Checked exceptions are checked at compile-time.
2)Unchecked Exception:
The classes that extend RuntimeException are known as unchecked exceptions e.g. ArithmeticException,NullPointerException etc. Unchecked exceptions are not checked at compile-time.
Similar topics
» Can subclass overriding method declare an exception if parent class method doesn't throw an exception ?
» What is Exception Handling?
» Can an exception be rethrown?
» What is exception propagation ?
» What is the base class for Error and Exception?
» What is Exception Handling?
» Can an exception be rethrown?
» What is exception propagation ?
» What is the base class for Error and Exception?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|