Guest User

Untitled

a guest
Jul 11th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. r = new LeakyThing();
  2. try { useResource( r); }
  3. finally { r.release(); } // close, destroy, etc
  4.  
  5. catch ( Exception e) ... // doesn't really catch *all*, eh?
  6.  
  7. catch ( Throwable t) ...
Add Comment
Please, Sign In to add comment