According to the mark & sweep algorithm the first time it marks objects and then the second time it sweeps .. so any unmarked objects would be collected the second time ..pls correct me if i am mistaken
Joined: Aug 26, 2001
Neither the JLS nor the JVMS require the use of the mark & sweep algorithm for garbage collection. In fact, the choice of the algorithm is completely up to the JVM vendor. Thus, such assumptions cannot be made.