The class java.lang.Exception is

Options
- protected
- extends Throwable
- implements Throwable
- serializable


CORRECT ANSWER : extends Throwable

Discussion Board
Feedback

In this website different kinds of solution present that are most helpful for students. It's
also help me. So, I want to say "THANK YOU".

Ravi Kumar Sharma 07-22-2015 02:48 PM

Throwable

java.lang.Exception is used to provide the exception class and the class Exception and its subclasses extends Throwable that indicates conditions that a reasonable application might want to catch.

Statements, methods, classes and subclasses are checked for exceptions. Every class and subclasses Exception which are not part of RuntimeException are also checked exceptions. Checked exceptions need to be declared in a method or constructor's throws clause. If they can be thrown by the execution of the statements and methods by propagating outside the method or constructor boundary.

Rohit Sharma 07-29-2014 02:42 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement