aspose file tools*
The moose likes Beginning Java and the fly likes Garbage Collection (Islands of isolation) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Garbage Collection (Islands of isolation)" Watch "Garbage Collection (Islands of isolation)" New topic
Author

Garbage Collection (Islands of isolation)

Juan Manuel Alberto de los Santos
Ranch Hand

Joined: Jun 26, 2008
Posts: 48
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3858

i1 object's i instance variable referes to i2 object and i2's instance variable refers to i1 object. When you make i1 & i2 null those two objects become isolated from outside.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19781
    
  20

Even though both objects still have a reference (from the other one), no other code can ever get a reference.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Garbage Collection (Islands of isolation)