When is garbage collector used in java? -


as far know gc used when jvm needs more memory, i'm not sure it. so, please, suggest answer question.

the garbage collection algorithm of java understand, pretty complex , not straightforward. also, there more algorithm available gc, can chosen @ vm launchtime argument passed jvm.

there's faq garbage collection here: http://www.oracle.com/technetwork/java/faq-140837.html

oracle has published article "tuning garbage collection 5.0 java[tm] virtual machine" contains deep insights garbage collection, , understand matter better: http://www.oracle.com/technetwork/java/gc-tuning-5-138395.html


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -