Java basic statement - YanYangJan/Java-Notebook GitHub Wiki

Basic Java statement

TRY AND CATCH { Java try block is used to enclose the code that might throw an exception. It must be used within the method.

Java try block must be followed by either catch or finally block.

Java catch block is used to handle the Exception. It must be used after the try block only. You can use multiple catch block with a single try. }