isnt c2 and c3 be eligible for GC
SCJP 1.5 94%.
The greatest glory in living lies not in never falling, but in rising every time we fall.
Originally posted by pradeepta chopra:
it should be
isnt c2 and c1 be eligible for GC??
since c3 is just a reference variable
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sorry, but I am not very clear on Ramesh's post of Short object from the constant pool.Can anyone clarify that?
Originally posted by Shiks Sethi:
T
How do i know which values would be cached and which not?
Like you said 5 is one of those values....
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
SCJP5 and SCWCD1.5
Think Twice Act Wise...
Originally posted by Ganeshkumar cheekati:
so,if we mention Short value as 200.i think it will not effect the answer which is two objects are eligible for garbage collection.
correct me if i am wrong.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |