jQuery in Action, 3rd edition
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Xplain me plz.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Xplain me plz.." Watch "Xplain me plz.." New topic

Xplain me plz..

Nandish KB

Joined: Aug 18, 2004
Posts: 6
4 Which line of code inserted //Here will free up a single object for garbage


1 a.i = null;
2 b.i = a.i;
3 b = null;
4 a = d.i;
5 d.i = b.i;
6 e = null;

Correct Ans: 5

Plz Explain me in detail Y 5 is the correct ans.
[ September 22, 2004: Message edited by: Barry Gaunt ]

Regards,<br />Nandish
Mahesh Bhatt
Ranch Hand

Joined: Sep 15, 2004
Posts: 88
Hi nandish,

here is the explanation, sorry I cannot give you a pictorial representation here, so it might be a little hard understanding this:

if you try to make a pictorial representation of this explanation step by step I am sure you would get this concept very much clear, I do it, it would even help you in your exam.
[ September 22, 2004: Message edited by: prashant bhogvan ]

Impossible is I M Possible
Nandish KB

Joined: Aug 18, 2004
Posts: 6
Hi Prashant,
Thanx for ur response.Yeah I came to know about it by drawing diagrams as per ur suggestions..

I agree. Here's the link: http://aspose.com/file-tools
subject: Xplain me plz..
It's not a secret anymore!