Programming - Exception Handling
You Are Here :: Home > JAVA > Exception Handling - General Questions
1. |
___________________________ are such anomalous conditions (or typically an event) which changes the normal flow of execution of a program.
|
A. |
Exception |
B.
|
Assertion |
C.
|
Abstraction
|
D.
|
Encapsulation
|
|
Answer: Option A
Explanation:
Exceptions are such anomalous conditions (or typically an event) which changes the normal flow of execution of a program. |
|
2. |
___________________________ are used for signaling erroneous (exceptional) conditions which occur during the run time processing.
|
A. |
Exceptions |
B.
|
Assertion |
C.
|
Abstraction
|
D.
|
Encapsulation
|
|
Answer: Option A
Explanation:
Exceptions are used for signaling erroneous (exceptional) conditions which occur during the run time processing. |
|
3. |
The Java programming language uses Exception classes to handle such erroneous conditions and exceptional events.
|
A. |
Exceptions |
B.
|
Assertion |
C.
|
Abstraction
|
D.
|
Encapsulation
|
|
Answer: Option A
Explanation:
The Java programming language uses Exception classes to handle such erroneous conditions and exceptional events. |
|
4. |
when any kind of abnormal conditions occurs with in a method then the exceptions are thrown in form of Exception Object
|
A. |
Exceptions |
B.
|
Assertion |
C.
|
Abstraction
|
D.
|
Encapsulation
|
|
Answer: Option A
Explanation:
when any kind of abnormal conditions occurs with in a method then the exceptions are thrown in form of Exception Object |
|
5. |
The mechanism of handling an exception is called ___________________________.
|
A. |
Exception |
B.
|
Assertion |
C.
|
Abstraction
|
D.
|
Encapsulation
|
|
Answer: Option A
Explanation:
The mechanism of handling an exception is called catching an exception or handling an Exception or simply Exception handling. |
|
6. |
The process of detecting the exceptions and responding to them as well is known as ___________________________________.
|
A. |
Exception Handling |
B.
|
Assertion |
C.
|
Abstraction
|
D.
|
Encapsulation
|
|
Answer: Option A
Explanation:
the process of detecting the exceptions and responding to them as well is known as Exception handling. |
|
next »