April 2018
Intermediate to advanced
910 pages
33h 21m
English
To perform the walking over the stack elements we need an instance of the stack walker. To do that, we invoke the getInstance() method. As shown here, there are four overloaded versions of this method:
The first version does not take any arguments and returns a StackWalker instance that will let us walk through normal stack frames. This is usually what we would be interested in. The other versions of the method accept a StackWalker.Option value or values. The enum StackWalker.Option, ...