Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. try {
  2.  
  3. // Statements that may throw exceptions
  4. methodThrowingExceptions();
  5.  
  6. } catch (Exception ex) {
  7.  
  8. // Exception caught and handled here
  9. reportException(ex);
  10.  
  11. } finally {
  12.  
  13. // Statements always executed after the try/catch blocks
  14. freeResources();
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement