My own java project step by step

Address of variable saved in stack
And the main variable or value saved in heap

Stack works with FIFO
Heap works with LIFO

Spread the love