
Generally java memory is divided into two big parts : Heap Stack Heap is huge amount of memory compare to stack. 1024 MB is default value of heap size in java. Java Heap Space is used throughout the application, but Stack is only used for the method — or methods — currently running. Stack :Stack memory is responsible

Java thread pools represents a group of worker thread that are waiting for job and reuse many times. A thread pool reuses previously created threads to execute current tasks and offers a solution to problem of thread cycle overhead and resource thrashing.