DEV Community

Discussion on: How does your language handle memory?

Collapse
 
evanoman profile image
Evan Oman • Edited

I don't pretend to fully understand it but most (all?) Java Virtual Machine implementations use generational garbage collection which is pretty neat. The GC makes certain (configurable) assumptions about the distribution of object lifetimes and attempts to optimize memory cleanup accordingly.

I am sure there are some good articles online but I really loved the coverage of this topic in Chapter 6 of Java in a Nutshell.