This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Isolating a reference Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Isolating a reference" Watch "Isolating a reference" New topic
Author

Isolating a reference

Chitta Ranjan Mahato
Ranch Hand

Joined: Jun 20, 2009
Posts: 38

Thanks in advance
Paul Beckett
Ranch Hand

Joined: Jun 14, 2008
Posts: 95
looks like an example of islands of isolation.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

If you consider a reference as a bridge to the island, you first create three bridges from main to the three islands. You then build a bridge from the island named i2 to the island named i3, from i3 to i4 and from i4 to i2. Each island now has three bridges coming in: one from main and one from one of the other islands.

If you then assign null to your references, you break down the bridges from main. The islands cannot be reached from main anymore, but they still have bridges between each other. That's what's called an island of isolation as Paul has said.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Isolating a reference
 
Similar Threads
Garbage Collection Question
Isolating a Reference
Garbage Collection
GC: Islands of Isolation
islands of isolation