THE OCP EXAM TOPICS COVERED IN THIS PRACTICE TEST INCLUDE THE FOLLOWING:
- Exceptions and Assertions
- Use try-catch and throw statements
- Use catch, multi-catch, and finally clauses
- Use Autoclose resources with a try-with-resources statement
- Create custom exceptions and Auto-closeable resources
- Test invariants by using assertions
If a try, a catch, and a finally statement are used together but no exception is generated, which blocks are executed and in which order?
- try, catch
- try, catch, finally
- try, finally
Fill in the blanks: A try statement__________ a catch or a finally block, while a try-with-resources ...