This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes System.gc() 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 "System.gc()" Watch "System.gc()" New topic
Author

System.gc()

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

Hello ,

i want to know whether i need System.gc() for SCJP5 .

I think its not in SCJP6.

Thanks


http://www.androcid.com/
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

chetan dhumane wrote:Hello ,

i want to know whether i need System.gc() for SCJP5 .

I think its not in SCJP6.


Not exactly a "System.gc()", but you should no How JVM's garbage collection works and which elements are considered for GC when GC threads awake (You can expect a question on this).


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Jari Timonen
Ranch Hand

Joined: Jan 16, 2004
Posts: 230
http://faq.javaranch.com/java/ScjpFaq#16diff15


SCJP 5.0, SCJD URLyBird 1.3.3, OCMJEA 5 (SCEA) Factory Homes
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

As Jari pointed out, explicit call to System.gc() was in the objectives of SCJP 5 but has been removed from SCJP 6...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: System.gc()
 
Similar Threads
garbage collection
what is the difference b/w Runtime.gc() and System.gc()? which one is best?
Is there a way to ensure gc() will run?
if Java has garbage collection, then why
why two gc() method ?