How do you force an object to be garbage collected?
Set object to null and call Runtime.getRuntime().runFinalization()
Set object to null and call System.gc()
Set object to null and call Runtime.gc()
There is no way to force an object to be garbage collected