Question
When does an exception's stack trace get recorded in the exception object?
- A. When the exception is constructed
- B. When the exception is thrown
- C. When the exception is caught
- D. When the exception's
printStackTrace()
method is called
A.
Note
The stack trace is recorded when the exception is constructed.
PreviousNextRelated