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

System.gc()

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

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

I think its not in SCJP6.

Thanks
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Jari Timonen
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://faq.javaranch.com/java/ScjpFaq#16diff15
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Jari pointed out, explicit call to System.gc() was in the objectives of SCJP 5 but has been removed from SCJP 6...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic