Is guaranteed that the garbage collection will start after calling Runtime.getRuntime().gc()?
Explanation
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.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по Java
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты