File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Garbage collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Garbage collection" Watch "Garbage collection" New topic
Author

Garbage collection

Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

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.................


SCJP6.0,My blog Ranchers from Delhi
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8883
    
    5
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


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Garbage collection