hi I have a question. Will an inner class object be garbage collected before the outer class object ? a) in the case of static nested classes b) in the case of nonstatic inner classes Thanks Deepti
Inner class objects are no different from any other object on the heap: an object becomes available to GC when no live thread can access it through the object reference.