What is the difference between a checked exception and an unchecked exception in Java?
A. A checked exception is a subclass of RuntimeException, while an unchecked exception is any other subclass of Exception.
B. A checked exception must be handled or declared in the method signature, while an unchecked exception does not have to be handled or declared.
C. A checked exception can be caught by a catch block, while an unchecked exception cannot be caught.
D. None of the above
Answer:B
What is the difference between a checked exception and an unchecked exception in Java?
A. A checked exception is a subclass of RuntimeException, while an unchecked exception is any other subclass of Exception. B. A checked exception must be handled or declared in the method signature, while an unchecked exception does not have to be handled or declared. C. A checked exception can be caught by a catch block, while an unchecked exception cannot be caught. D. None of the above