Which one of the following methods in the exception class, is used to get a nested exception object?

Which one of the following methods in the exception class, is used to get a nested exception object? Correct Answer getPrevious()

getCode() – Get the code integer that was passed to the constructor. getFile() – Get the file in which the exception was generated. getLine() – Get the line number at which the exception was generated.

Related Questions

If class A has two nested classes B and C. Class D has one nested class E, and have inherited class A. If E inherits B and C, then ________________
A static nested class is _____________ class in behavior that is nested in another _________ class.