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
  • 41,357
  • 26
  • 141
  • 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
  • 131,619
  • 54
  • 311
  • 446
2

Island of Isolation

Community
  • 1
  • 1
Mihir Mathuria
  • 6,409
  • 1
  • 21
  • 15