Chapter Summary

This chapter described the operation of the garbage collector and covered the circumstances in which an object is subject to garbage collection. It explained the difference between being subject to garbage collection and having garbage collection actually performed. This chapter also covered finalization and how it fits into the garbage-collection process. You should now be prepared to test your knowledge of these subjects. The following review questions and exam questions will determine how well you understand this material and will give you an idea of how you will do in garbage-collection–specific exam questions. The questions will also indicate which material you need to study further.

KEY TERMS

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.