Originally posted by Angela Narain:
I have two questions regarding GC:
1. You can call the garbage collector whenever you want to.( True/False )
When we invoke System.gc() , does it mean we are calling the
garbage collector whenever we want to.
Originally posted by Angela Narain:
[B]
The correct answer is 1.
Is is because the String2 value "Today" is lost after line 4.
Can someone explain it to me in better terms.
thanks [/B]
Muhammad Farooq<br />Sun Certified Programmer for Java 2 Platform<br />Oracle8i Certified Professional Database Administrator
SCJP2. Please Indent your code using UBB Code
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |