Saturday, January 16, 2016

Java Exception Handling

Java exception handling is managed via five keywords

  1. try
  2. catch
  3. throw
  4. throws
  5. finally
Advantage of try catch:
  1. It allows you to fix error.
  2. It prevents the program from automatically terminating.

No comments:

Post a Comment