November 2017
Intermediate to advanced
398 pages
10h 14m
English
A try block consists of a series of program statements that include exceptions. Try blocks are followed by catch blocks, which are used to process the exception contained in the try blocks. In many instances, the catch block is then followed by a finally block that has the function of executing essential Java code, such as a stream or a closing connection. It is important to note that the individual blocks may not always follow a sequence. In many cases, a try-catch block will be sufficient. In other cases, it will require using all try-catch-finally blocks.
Read now
Unlock full access