Java Nested try block
try block inside a try block is known as a nested try block. Note: The exception handler must be also nested in case the try block is nested. Syntax of the nested try block try{ //block of statements try{ //block of statements }catch(Exception handler class){ } }catch(Exception handler class){ } NestedTryExample.java class ArithmaticTest{ … Read more