Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Garbage collection

 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Page no 260.......kathy sierra.

Forcing Garbage Collection
The first thing that should be mentioned here is that, contrary to this section's
title, garbage collection cannot be forced. However, Java provides some methods
that allow you to request that the JVM perform garbage collection.
Note: As of the Java 6 exam, the topic of using System.gc() has been removed
from the exam.
The garbage collector has evolved to such an advanced state that
it’s recommended that you never invoke System.gc() in your code - leave it to the
JVM. We are leaving this section in the book in case you’re studying for a version
of the exam prior to SCJP 6
.

Whther the garbage collection is removed from the actual exam or it is still there in the course.................
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Phil,

GC is still on the exam, but System.gc() is not.

You still have to understand when an object is eligible for GC, you have to understand what's not guaranteed by the GC, and you still have to understand finalize().

hth,

Bert
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic