In java the garbage collection is run by the virtual machine, not the user. Method call gc() - this is only a request for the garbage collection. The specification does not regulate the collection time and can not guarantee whether it will start at all.
Login in to like
Login in to comment