Question d’entretien chez Samsung Electronics

Explain the difference between the stack and heap.