Java
Programming and Technical
Programming
_____ exceptions are automatically propagated. To propogate _____ exceptions, the method should explicitly throw the exception using the throws keyword.
A. checked, unchecked
B. unchecked, checked
Read Solution (Total 2)
-
- B. unchecked, checked
- 2 years agoHelpfull: Yes(0) No(0)
- (A) Checked exceptions are the exceptions that are checked at compile-time. If some code within a method throws a checked exception, then the method must either handle the exception or it must specify the exception using the "throws" keyword. Checked exceptions are usually caused by external factors outside the control of the program, such as I/O errors or network errors. On the other hand, unchecked exceptions are not checked by the compiler. These are called runtime exceptions, and they are usually caused by programming errors, such as null pointer exceptions or arithmetic exceptions. Unchecked exceptions are not required to be caught or declared in a "throws" clause.
- 1 year agoHelpfull: Yes(0) No(0)
Java Other Question