2

I know I learnt this on the SCJP syllabus, but it escapes me.

What's the term for a set of objects that refer to each other but are no longer accessible from your program (and are thus eligible for garbage collection)?

brabster
  • 42,504
  • 27
  • 146
  • 186

2 Answers2

4

Your objects are unreachable (i.e. they cannot be reached from any current stack frame and can thus be considered to be garbage). In the specific case of a set of mutually-referencing objects, these can be said to have cyclic references

oxbow_lakes
  • 133,303
  • 56
  • 317
  • 449
2

Island of Isolation

Community
  • 1
  • 1
Mihir Mathuria
  • 6,479
  • 1
  • 22
  • 15