Google Interview Question

What is a stack trace?

Interview Answer

Anonymous

Sep 12, 2019

A stack trace is generated whenever your app crashes because of an error or an exception. You can also print a stack trace at any point in your app code using methods such as Thread.dumpStack().