What's ThreadLocal in Java and how it causes memory leak?
Feb 2, 2023 · 2 min read · This article is just for self-learning. To understand this question, we need to know what is WeakReference in Java. What's WeakReference? In short, any WeakReference object in Java will be cleaned up whenever garbage collection determines to do so. W...
Join discussion