Multiple choice technology programming languages

Compile time error can

  1. Handle with try catch block

  2. Handle with Throwable class

  3. Both of above true

  4. None of above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Compile-time errors (checked exceptions) must be handled at compile time through declaration or catching. They cannot be handled with try-catch at runtime because the compiler enforces their handling before the code can run. Throwable is the superclass of all errors and exceptions but doesn't apply here.