Java Stack and Heap Diagram
Java Code
Stack/Heap Diagram