What is the difference between a checked exception and an unchecked exception in Java?
A. A checked exception is an exception that is checked at compile-time, while an unchecked exception is an exception that is checked at runtime.
B. A checked exception is an exception that is checked at runtime, while an unchecked exception is an exception that is checked at compile-time.
C. A checked exception must be caught or declared in the method signature, while an unchecked exception does not have to be caught or declared.
D. None of the above.
Answer:C
What is the difference between a checked exception and an unchecked exception in Java?
A. A checked exception is an exception that is checked at compile-time, while an unchecked exception is an exception that is checked at runtime. B. A checked exception is an exception that is checked at runtime, while an unchecked exception is an exception that is checked at compile-time. C. A checked exception must be caught or declared in the method signature, while an unchecked exception does not have to be caught or declared. D. None of the above.