Tag Archives: try catch block

Java try catch block

The try is a keyword that is used by java to enclose the code that might throw an exception. You can use the try block within the method body. It is recommended to keep that code in the try block only that will throw an exception. Also, the try block must always be followed by the catch and… Read More »