Home / MCQ Bank / Computer
Computer Miscellaneous In Java

What does the `finally` block in a Java `try-catch-finally` construct do?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • It contains code that is always executed, regardless of whether an exception is thrown or not

Related Computer Questions

What is the advantage of a computer-based transaction processing system Which of the following is system software? What will be the output of the following Java program? class Output { public static void main(String args[]) { int a = Character.MAX_VALUE; System.out.print((char)a); } } What indicates the content in file is HTML when delivered on the network. Which of the following is a valid variable name in C++?