SCJP 5
Hard work rewards
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Originally posted by Mohammed EL-Adawi:
My answer is after line 9 excutes, because the the third constructed object is no more reachable
But the exam answer is "Never in this program", it was explained that 3rd object is still "has-a" ref to another object which is still alive.
I still have a doubt, because it does not make a sense to have a useless object in the heap, even if 3rd object is still "has-a" ref to another alive object, because that ref also is not reachable.
Enthuware - Best Mock Exams and Questions for Oracle Java Certifications
Quality Guaranteed - Pass or Full Refund!
Hard work rewards
I know where my towel is. (SCJP 5, OCPJWCD)
[Free Quiz Tips for a fun night with friends or family] Flash games
SCJP 5
Hard work rewards
f i understood now...
To JVM's knowledge these circular interconnected objects are still referrenced to each other thus not eligible to GC although they're unreachable any longer from the application after e1=e2=e3=null.
Thanks!
I know where my towel is. (SCJP 5, OCPJWCD)
[Free Quiz Tips for a fun night with friends or family] Flash games
Hard work rewards
I know where my towel is. (SCJP 5, OCPJWCD)
[Free Quiz Tips for a fun night with friends or family] Flash games
Don't get me started about those stupid light bulbs. |