Get premium membership and access questions with answers, video lessons as well as revision papers.

Java exception handling is managed by five keywords: state and discuss the role of each of the keywords.

      

Java exception handling is managed by five keywords: state and discuss the role of each of the keywords.

  

Answers


gregory
Program statements to monitor are contained within a try block, if an exception occurs within the try
block, it is thrown. Code within catch block catches the exception and handles it. To manually throw an
exception, the keyword throw is used. Any exception that is thrown out of a method must be specified as
such by a throws clause. Any code that absolutely must be executed before a method returns is put in a
finally block
gregorymasila answered the question on January 24, 2018 at 17:38


Next: State four differences between Java applications and Java applets programming.
Previous: Distinguish between abstract classes and interfaces

View More Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions