Hi Ranchers,
I had Registered here two moth ago but this is my first post in this forum.
I m preparing for
scjp 6 again. yes i had tried it once on Jan 29 (because my voucher is going to expire on jan 31) but failed (51%).
now i am going again for scjp and want to clear this time with 90+.
I had one doubt about the question in devka's diagnostic exam:
Question asked in the mock was "How many objects are eligible for GC after line 12 ?" .
And the answer is "1".
my doubt is that when creating object in the above question, null passed as argument to constructor .
will object be created on the heap (having "null" as value) this way ?
what i thought that there is no object created at all.........i was wrong but need explanation on this. please help.
and please forgive me for my grammatical mistakes......