Domanda di colloquio di MindGate Solutions

Difference between Heap and Stack Memory in java. And how java utilizes this.

Risposta di colloquio

Anonimo

19 apr 2024

Stack memory is the portion of memory that was assigned to every individual program. And it was fixed. On the other hand, Heap memory is the portion that was not allocated to the java program but it will be available for use by the java program when it is required, mostly during the runtime of the program.