Exception Handling Keywords in Java

Following keywords are used to handel exception in Java-

  • try – It is used to maintain risky code.
  • catch – It is used to maintain exception handling code.
  • finally – It is used to maintain cleanup code.
  • throw – It is used to handover created exception objects to JVM manually.
  • throws – It is used to transfer the responsibility of exception handling to the caller method.

Similar Java Tutorials

2 thoughts on “Exception Handling Keywords in Java”

Leave a Comment