From functioning process viewpoint everything is simply a heap, wherever Java runtime method allocates a number of its Room as "non-heap" memory for processed bytecode. Rest of that OS-level heap is employed as software-stage heap, in which item's information are stored.this is simply not the challenge OP was facing plus your problem is While using