Resource Release Is Finalization is arguably the more relevant part of RAII.
The “resource” in question is often a shared resource, but not shared simultaneously. It has to be acquired and released. Such resources include
* DB connections
* heap objects (via pointers)
java synchronized keyword
java finally() to close DB connection