X hits on this document

124 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 views124
Page views124
Page last viewedSat Dec 10 18:56:53 UTC 2016
Pages46
Paragraphs816
Words2901

Comments