X hits on this document

149 views

0 shares

0 downloads

0 comments

43 / 46

© S. Uchitel, 2004

43

Garbage Collection

The separation of objects and references to them can lead to:

Reference variables pointing to no object.

Objects with many references to them.

Object with no references to them.

Inaccessible objectes can clog up the memory (the heap)

Java has a garbage collection process

Runs automatically

Frees up memory by removing objects that are inaccessible.

Conclusion

You don’t have to worry about object “destruction”

Leave them in the heap, the collector will get them for you

Document info
Document views149
Page views149
Page last viewedFri Jan 20 08:45:44 UTC 2017
Pages46
Paragraphs816
Words2901

Comments