concept nested try - catch block in category java

appears as: nested try-catch blocks
Java SE 11 Programmer I Certification Guide

This is an excerpt from Manning's book Java SE 11 Programmer I Certification Guide.

Now comes another Twist in the Tale exercise that’ll test your understanding of the exceptions thrown and caught by nested try-catch blocks. In this one, an inner try block defines code that throws a NullPointerException. But the inner try block doesn’t define an exception handler for this exception. Will the outer try block catch this exception? See for yourself (answer in the appendix).

OCA Java SE 8 Programmer I Certification Guide

This is an excerpt from Manning's book OCA Java SE 8 Programmer I Certification Guide.

Now comes another Twist in the Tale exercise that’ll test your understanding of the exceptions thrown and caught by nested try-catch blocks. In this one, an inner try block defines code that throws a NullPointerException. But the inner try block doesn’t define an exception handler for this exception. Will the outer try block catch this exception? See for yourself (answer in the appendix).