TechAlpine – The Technology world

How memory is managed in java?

A: Let me describe how memory is managed in java. In Java manual memory allocation and de-allocation has been eliminated. Memory in Java is automatically garbage collected so you never have to worry about memory corruption. Java memory is managed by the memory model. The Java Memory model explains synchronization techniques to make sure data corruption does not take place. Synchronization can also help to avoid deadlocks between threads and run programs smoothly. The following diagram gives an overview on java memory management.

Leave a Reply

Your email address will not be published. Required fields are marked *


× 9 = 45

TechAlpine Books
-----------------------------------------------------------