KLA Interview Question

How to determine if an object is in stack or heap