Consider the following code: public class Exception {    pub…

Consider the following code: public class Exception {    public void x() {        throw new IndexOutOfBoundsException();    }    public void y(int n) {        try {            if (n > 20)                x();            else                z();        } catch (IndexOutOfBoundsException e) {            System.out.println(“Index out of bounds caught in y”);        } catch (Exception e) {            System.out.println(“Exception caught in y”);        }    }    public void z() {        throw new NullPointerException();    }}What will be the output when the following method call is made? Exceptional ex = new Exceptional();ex.z();