Programming - Exception Handling
You Are Here :: Home > JAVA > Exception Handling - General Questions
13. |
If you call the readLine() method on a BufferedReader object then the IOExceptionmay occur
|
A. |
java.io.Exception |
B.
|
java.lang.Exception |
C.
|
java.sql.Exception
|
D.
|
java.date.Exception
|
|
Answer: Option B
Explanation:
If you call the readLine() method on a BufferedReader object then the IOExceptionmay occur |
|
14. |
Unchecked exceptions are the exceptions which occur during the runtime of the program.
|
A. |
Checked Exceptions |
B.
|
UnChecked Exceptions |
C.
|
both A and B
|
D.
|
none
|
|
Answer: Option B
Explanation:
Unchecked exceptions are the exceptions which occur during the runtime of the program. |
|
15. |
Unchecked exceptions are internal to the application and extend thejava.lang.RuntimeException
|
A. |
Checked Exceptions |
B.
|
UnChecked Exceptions |
C.
|
both A and B
|
D.
|
none
|
|
Answer: Option B
Explanation:
Unchecked exceptions are internal to the application and extend thejava.lang.RuntimeException |
|
16. |
Unchecked exceptions are also called Runtime exceptions that are usually caused by data errors, like arithmetic overflow, divide by zero etc.
|
A. |
Checked Exceptions |
B.
|
UnChecked Exceptions |
C.
|
both A and B
|
D.
|
none
|
|
Answer: Option B
Explanation:
Unchecked exceptions are also called Runtime exceptions that are usually caused by data errors, like arithmetic overflow, divide by zero etc. |
|
17. |
The errors in java are ________________ to the application.
|
A. |
External |
B.
|
Internal |
C.
|
both A and B
|
D.
|
none
|
|
Answer: Option A
Explanation:
The errors in java are external to the application. |
|
18. |
Errors and runtime exceptions are together called as unchecked exceptions.
|
A. |
Checked Exceptions |
B.
|
UnChecked Exceptions |
C.
|
both A and B
|
D.
|
none
|
|
Answer: Option B
Explanation:
Errors and runtime exceptions are together called as unchecked exceptions. |
|
« prev
next »