DEVFYI - Developer Resource - FYI

What is try

J2SE Interview Questions and Answers


(Continued from previous question...)

What is try

A Java keyword that defines a block of statements that may throw a Java language exception. If an exception is thrown, an optional catch block can handle specific exceptions thrown within the try block. Also, an optional finally block will be executed regardless of whether an exception is thrown or not.

(Continued on next question...)

Other Interview Questions