Object Expiration
JVM removes the preferences if
- Reference is used in a function and the function finished executing
- Reference is overwritten by another reference
myReference = new Reference();
- Reference is set to null
myReference = null;
JVM removes the preferences if
myReference = new Reference();
myReference = null;