Which three statements are true about exception handling?

Which three statements are true about exception handling?

Which three statements are true about exception handling?

A.
Only unchecked exceptions can be rethrown.

B.
All subclasses of the RuntimeException class are recoverable.

C.
The parameter in a catch block is of Throwable type.

D.
All subclasses of the RuntimeException class must be caught or declared to be thrown.

E.
All subclasses of the Exception class except the RuntimeException class are checked exceptions.

F.
All subclasses of the Error class are checked exceptions and are recoverable.



Leave a Reply 4

Your email address will not be published. Required fields are marked *


as

as

CDE,
Error is subclass of Throwable not Exception

jeronimo

jeronimo

A.
Only unchecked exceptions can be rethrown.
ESTO NO ES CIERTO LAS EXCEPTIONS CHECKED TAMBIEN SE PUEDEN LANZAR

B.
All subclasses of the RuntimeException class are recoverable.
NI IDEA
C.
The parameter in a catch block is of Throwable type.
ESTO SUPONGO SERA CIERTO PORQUE CUANDO CAPTURAS LA EXCEPCION LANZAS UNA ACCION
D.
All subclasses of the RuntimeException class must be caught or declared to be thrown.
LO QUE DEBEN ES CORREGIRLAS SON ERRORES DE COMPILACION.
E.
All subclasses of the Exception class except the RuntimeException class are checked exceptions.
AL CONTRARIO SON UNCHECKED
F.
All subclasses of the Error class are checked exceptions and are recoverable.
NI IDEA.

leo

leo

Rpta.”C” :El parĂ¡metro que se usa en un bloque “catch” es de tipo “Throwable”.

Rpta.”E” :Todas las subclases de la clase Exception excepto la clase
RuntimeException son excepciones Checked.

Throwable—->Exception—–>IOException (Exception de tipo Checked)
—–>SQLException (Exception de tipo Checked)
… …
—–>RuntimeException (Exception de tipo Unchecked)