Pushpay Interview Question

What is the difference between value and ref types, between stack and heap and how GC works