Apply Your Knowledge

Review Questions

1:What is the purpose of garbage collection?
2:When is an object subject to garbage collection?
3:How many times can an object's finalize() method be invoked?
4:Can an unreachable object become reachable again?
5:Under what conditions does the garbage collector invoke an object's finalize() method?
6:What is the purpose of finalization?
7:Does garbage collection guarantee that a program will not run out of memory?
8:If an object is garbage collected, can it become reachable again?
9:Can an object be garbage collected while it is still reachable?
10:Can an object's finalize() method be invoked while it is reachable?

Exam Questions

1:At which line in the following code is the Vector object created in line 4 first subject ...

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.