This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Xplain me plz.. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Xplain me plz..
 
Similar Threads
Ravish's Tutorial
Casting and Interfacses
Little challenge
Are my answers correct ?
Mock exam questions section 3