Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. try {
  2. // block of code to monitor for errors
  3. // the code you think can raise an exception
  4. }
  5. catch (ExceptionType1 exOb) {
  6. // exception handler for ExceptionType1
  7. }
  8. catch (ExceptionType2 exOb) {
  9. // exception handler for ExceptionType2
  10. }
  11. // optional
  12. finally {
  13. // block of code to be executed after try block ends
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement