Question d’entretien chez MANTECH

What are the differences between Heap and Stack Memory in Java?

Réponse à la question d'entretien

Utilisateur anonyme

21 mai 2022

Stack is generally used to store the order of method execution and local variables. In contrast, Heap memory is used to store the objects. After storing, they use dynamic memory allocation and deallocation.