Fail-safe resource close with primary exception

Java Hard 4 views
Back to Questions

Problem Description

Task: simulate primary exception and also close exception; ensure primary is thrown.

Input Format

Java method

Output Format

Return value

Constraints

Add suppressed exception.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev