Exception Handling – Multiple Choice Questions (MCQs)
-
-
38. Can you have a `finally` block without a `try` block?
-
39. What is the try-with-resources" statement in Java (introduced in Java 7)?"
-
40. What interface must a resource implement to be used with the try-with-resources" statement?"
-
41. What is the advantage of using try-with-resources"?"