OCA Java SE 8 Exception - OCA Mock Question Exception 7
When are you required to use a finally block in a regular try statement not a try-with-resources?
- When the program code cannot exit on its own.
- When there are no catch blocks in a try statement.
- When there is one catch block in a try statement.
- When there are two or more catch blocks in a try statement.
A try statement is required to have a catch clause and/or finally clause.
catch can have multiple catch clauses.