Computer Science, asked by devikapinju1432, 11 months ago

15.which of these keywords must be used to monitor for exceptions? a) try b) finally c) throw d) catch

Answers

Answered by Rohitjhajhda
28
throw is used to monitor for exception
Answered by smartbrainz
13

The correct answer is a)try

Explanation:

The try statement let the developer define a section of code to be tested for faults during execution. The catch statement allows you to define a section of program code to be executed if an error occurs in the try block.

The keyword “throw'' is used in the program for throwing exception manually in java program.  

The "finally" section is used in program code to carry out a given set of program statements, whether an exception is thrown or not thrown.

Similar questions