File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes K&B Self Test Chp3 Q11 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "K&B Self Test Chp3 Q11" Watch "K&B Self Test Chp3 Q11" New topic

K&B Self Test Chp3 Q11

Jack Bento
Ranch Hand

Joined: Jun 14, 2009
Posts: 34

When line 16 is reached, how many objects will be eligible for garbage collection?

Is there really only 1 object eligible? I make it the 2 objects b1 & a1
Neha Daga
Ranch Hand

Joined: Oct 30, 2009
Posts: 504
this question has already been discussed here

SCJP 1.6 96%
Jack Bento
Ranch Hand

Joined: Jun 14, 2009
Posts: 34
It is sorta covered in the JavaRanch Style Guide.
subject: K&B Self Test Chp3 Q11
Similar Threads
Eligible for garbage collection
kathy sierra question doubt
Garbage collection program really confusing me?
Problems with garbage collection
Garbage Collection query.