Chapter 7 Flashcards
1
Q
What are types of errors
A
Syntax error
Logical error
Run time error
2
Q
What is the difference between error and exception
A
Error can not be recovered and exception can be recovered and handle
3
Q
Is exception an object in java
A
Yes
4
Q
What are 2 types of exceptions in java
A
Checked exceptions (compiler force us to write code for that exceptions) Unchecked exceptions (compiler do not force us to write code for that exceptions)
5
Q
In which category run time exceptions falls
A
Unchecked exceptions
6
Q
In which category IO Exceptions fall
A
Checked exceptions
7
Q
Does finally block in exceptions always execute
A
Yes
8
Q
What is the order of multiple catch blocks
A
Top should be child and parent towards bottom
9
Q
Which keyword is used to send exception to another method
A
throw