Hacker News new | ask | show | jobs
by trinovantes 1267 days ago
I haven't used Java since school so I'm curious about modern Java. Do you need to worry about circular references preventing garbage collection or are there easy tools to detect such cases?
2 comments

Circular references have never prevented garbage collection in any version of Java AFAIK.
Java will collect sets of objects with circular references: https://stackoverflow.com/questions/1910194/how-does-java-ga...