Title | |
---|---|
When does Exceptions in Java arises in code sequenceWhen does Exceptions in Java arises in code sequence?
The answer is:
A. Run Time
|
|
Which of these keywords must be used to monitor for exceptionsWhich of these keywords must be used to monitor for exceptions?
The answer is:
A. try
|
|
Which of these keywords must be used to handle the exception thrown by try block in some rational mannerWhich of these keywords must be used to handle the exception thrown by try block in some rational manner?
The answer is:
D. catch
|
|
What is the output of this programWhat is the output of this program?
The answer is:
B. World
|
|
What is the output of this programWhat is the output of this program?
The answer is:
B. B
|
|
Which of the following keywords is used for throwing exception manuallyWhich of the following keywords is used for throwing exception manually?
The answer is:
C. throw
|
|
Which of the following classes can catch all exceptions which cannot be caughtWhich of the following classes can catch all exceptions which cannot be caught?
The answer is:
B. Error
|
|
Which of the following is a super class of all exception type classesWhich of the following is a super class of all exception type classes?
The answer is:
D. Throwable
|
|
Which of the following operators is used to generate instance of an exception which can be thrown using throwWhich of the following operators is used to generate instance of an exception which can be thrown using throw?
The answer is:
D. new
|
|
Which of the following keyword is used by calling function to handle exception thrown by called functionWhich of the following keyword is used by calling function to handle exception thrown by called function?
The answer is:
A. throws
|
|
Which of the following handles the exception when a catch is not usedWhich of the following handles the exception when a catch is not used?
The answer is:
C. default handler
|
|
Which part of code gets executed whether exception is caught or notWhich part of code gets executed whether exception is caught or not?
The answer is:
A. finally
|
|
Which of the following should be true of the object thrown by a thrown statementWhich of the following should be true of the object thrown by a thrown statement?
The answer is:
C. Should be assignable to Throwable type
|
|
At runtime, error is recoverable |
|
Which of these clause will be executed even if no exceptions are foundWhich of these clause will be executed even if no exceptions are found?
The answer is:
B. finally
|
|
What is the output of this programWhat is the output of this program?
The answer is:
B. 1
|
|
What is the output of this programWhat is the output of this program?
The answer is:
D. Runtime Error
|
|
Which of these keywords are used for the block to be examined for exceptionsWhich of these keywords are used for the block to be examined for exceptions?
The answer is:
A. try
|
|
Which of these statements is incorrectWhich of these statements is incorrect?
The answer is:
D. try need not to be followed by anything
|
|
What is the output of this programWhat is the output of this program?
The answer is:
B. World
|
MCQs
Views
Best Answers
Points