File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Xplain me plz..

Nandish KB
Greenhorn

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

collection?


Answers:
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.
Regards,
Nandish
[ 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
Greenhorn

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..

Thanx.
 
Consider Paul's rocket mass heater.
 
subject: Xplain me plz..