View Source on Github

Resource Acquisition Is Initialization

Difficulty-Beginner Idiom Java Other

Intent

Resource Acquisition Is Initialization pattern can be used to implement exception safe resource management.

alt text

Applicability

Use the Resource Acquisition Is Initialization pattern when

  • you have resources that must be closed in every condition