Working of garbage collector in java | Coding & Fun

preview_player
Показать описание
Since JVM provides memory management, Java developers only care about creating object, they don't care about cleaning up, that is done by garbage collector, but it can only collect objects which has no live strong reference or it's not reachable from any thread. If an object, which is suppose to be collected but still live in memory due to unintentional strong reference then it's known as memory leak in Java. ThreadLocal variables in Java web application can easily cause memory leak

Follow us on instagram: ankigupta091

Don't forget to click on bell icon.
Рекомендации по теме
welcome to shbcf.ru