What Is The Purpose Of Weak Reference?

What Is The Purpose Of Weak Reference? A weak reference allows the garbage collector to collect an object while still allowing an application to access the object. If you need the object, you can still obtain a strong reference to it and prevent it from being collected. What is the difference between soft reference and