Which statement is true?
A. catch(X x) can catch subclasses of X.
B. The Error class is a RuntimeException.
C. Any statement that can throw an Error must be enclosed in a try block.
D. Any statement that can throw an Exception must be enclosed in a try block.
E. Any statement that can throw a RuntimeException must be enclosed in a try
block.
Answer: A
Error and Exception are subclasses of Throwable.
RuntimeException is a subclass of Exception.
statements that throw Error do not need to be in a try block.
statemens that throw RuntimeException do not need to be in a try block (but other Exceptions have to be).