• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ques from Self Test in Chap3/K&B 5 ,page 266

 
Lucky J Verma
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
this is question# 2 from self test in K & B SCJP 5 book.
It is on Garbage collection when // do stuff is reached ,how many objects are eligible for GC.

I think it should be 4( c1,c2) but answer is 2 (c1) .Please suggest me how.

 
Harry Henriques
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following reference explains quite clearly why there is confusion concerning the answer to the SCJP SelfTest question in K&B SCJP5 Study Guide.

Ankit Garg wrote:Also if you are confused as to why c2 is not eligible for GC, then read this...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic