Computer Science, asked by sw2eetaavamonal, 1 year ago

when to use weak reference in java

Answers

Answered by sairockzz
0
Weak references are used to avoid keeping memory referenced by unneeded objects. Some garbage-collected languages feature or support various levels ofweak references, such as Java, C#, Python, Perl or Lisp. Garbage collection is used to reduce the potential for memory leaks and data corruption.
Similar questions