Nguyễn Tuấn Dương
New member
How does Java allocate stack and heap memory?
Answer
The JVM divided the memory into following sections. This division of memory is required for its effective management. When each time a new object created in Java it goes into the area of memory known as heap. The primitive variables like int, long, float, double…Etc are allocated in the stack (i.e.
Answer
The JVM divided the memory into following sections. This division of memory is required for its effective management. When each time a new object created in Java it goes into the area of memory known as heap. The primitive variables like int, long, float, double…Etc are allocated in the stack (i.e.