13301 shaares
331 private links
331 private links
A weak object doesn't prevent the garbage collector to remove the object from memory. It can be useful to keep track of objects during the program lifetime (or a request handling from example).