Java
Programming and Technical
Programming
Technical
Which of the given fact(s) are true with respect to the blocks and order of execution of blocks in "Exceptions"?
A. The try block can be followed by finally block and then followed by the catch blocks
B. One or more catch blocks which are exception handlers are placed immediately after the try block
C. Catch block has an argument which can accept an argument of any exception type and it is the name of a class that inherits from the Throwable class
D. The finally block always executes when the try block exits or when an exception occurs
E. The finally block is not executed when there is a return statement in the try block
Read Solution (Total 2)
-
- D. The finally block is not executed when there is a return statement in the try block
- 2 years agoHelpfull: Yes(0) No(0)
- Statement E is false because the finally block is executed even if there is a return statement in the try block.
Rest are true statements. - 1 year agoHelpfull: Yes(0) No(0)
Java Other Question