Tag Archives: Stackoverflow error

Stackoverflow vs Outofmemory error

JVM divides its memory into two parts Heap memory and Stack : heap memory is used to store the instance objects whereas stack memory is used to store the calling hirarchy of the methods as well as the local variables of the method. OutOfMemoryError is related to Heap. If you have large object which is Continue Reading…