A. catch(X x) can catch subclasses of X. B. Any statement that can throw an Exception must be enclosed in a try block.
I guess Statement B is true..if not why..
Joined: Feb 07, 2005
No, RuntimeException, Error, and their subclasses are unchecked exceptions. Code that may throw them is not required to be in a try block nor is the exception required to be listed in the throws clause of the method containing the code.
Joined: Apr 25, 2005
Second part is same as your previous thread throw where i gave its explanation.