Memory management in Java 2 types of memory 1) Stack 2) Heap Stack memory: ---Stores temporary variables and separate memory block for methods. --- Store primitive data types --- Store Reference of heap objects. 1) Strong reference 2)Weak references ...