I was wondering when you remove a node in a linked list, does the garbage collection immediately remove it or does it get accumulated in a buffer which then removes it later on after it gets capped? This is in relation to running in the JVM. Thanks for the help!
Asked
Active
Viewed 33 times
0
-
Google around for how garbage collection works in Java. You'll find answers aplenty. – Lew Bloch Jul 15 '16 at 20:33
-
Read https://en.wikipedia.org/wiki/Garbage_collection_(computer_science), then https://en.wikipedia.org/wiki/Tracing_garbage_collection . – Louis Wasserman Jul 15 '16 at 20:43