What is the use?
Where we use.
What issue does it resolve?
Pros & Cons
What is the use?
Where we use.
What issue does it resolve?
Pros & Cons
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Jan 20, 2025, 4:36 PM
A weak reference is a reference that does not prevent the referenced object from being garbage collected. If no strong references to the object exist, the garbage collector can remove the object from memory, even if weak references are still pointing to it.
Use Cases
Issue It Resolves
Tuhin PaulPosted Jan 20, 2025, 4:30 PM
A strong reference is the most common type of reference. When you create an object in a program, it is typically referenced strongly by default. If an object has a strong reference pointing to it, the object will not be collected by the garbage collector (GC), as the GC considers it to still be in use.
Use Cases
Issue It Resolves