• Post Reply Bookmark Topic Watch Topic
  • New Topic

Garbage collection doubt  RSS feed

 
Anuraag Kumar
Greenhorn
Posts: 11
Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

For the number of objects eligible for garbage collection when line 14 is reached, the answer is 2 for below code. I feel its 3. Any suggestions please..

 
Campbell Ritchie
Marshal
Posts: 56529
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please always say where such questions come from to avoid copyright problems. Also please explain why you think there are three objects eligible for GC at line 14.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!