Fill in the blanks:
A program must handle or declare ___ but should never handle ___.
B.
Checked exceptions must be handled or declared or the program will not compile, while unchecked exceptions can be optionally handled.
java.lang.Error should never be handled by the application because it often indicates an unrecoverable state in the JVM, such as running out of memory.
Option B is the correct answer.