KLA interview question

How to determine if an object is in stack or heap