I am reading Head First Java 2nd Edition Page 332, and I have a question.
Paragraph 2, "A ShirtException catch is big enough to take a TeeShirtException or a DressShirtException(and any future subclass of anything that extends ShirtException)."
I think A ShirtException catch is a big enough to take a TeeShirtException AND a DressShirtException. TeeShirtException and DressShirtException both extend ShirtException, so ShirtException should be big enough to take both TeeShirtException and DressShirtException. But, Since TeeShirtException already has a unique exception for itself, it will not go in ShirtException.
I am confused here. Could anyone help me?