Advertisement
flamewheel56

Exception Handling Syntax

Mar 6th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.18 KB | None | 0 0
  1. try {
  2. /*
  3. Example Code:
  4. int a=5,b=0,c;
  5. c=a/b;
  6. */
  7. } catch (Exception e) {
  8. // ie: System.out.println("ERROR: " + e)
  9. } finally {
  10. // ie: System.out.println("Execution Completed.");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement