Exceptions Flashcards
1
Q
Checked vs. unchecked exceptions. Why would one use former or later?
A
2
Q
Difference in Error and UncheckedException
A
3
Q
Could we have only try and finally without catch
A
Yes, it is not mandatory to use catch block with finally
4
Q
Cases when the finally block isn’t executed
A
5
Q
What is exception handling mechanism
A
6
Q
Java Exceptions API
A
7
Q
How to avoid catch block
A
8
Q
What is Multi-Catch catch (FileNotFoundException | IOException e)
A
9
Q
What is try-with-resources
A
10
Q
What are Suppressed exceptions
A
11
Q
NoClassDefFoundError vs ClassNotFoundException
A