News

MemoryLeak‘s main() method first creates a java.util.ArrayList to store EnclosingClass.EnclosedClass objects. ... Eventually, this application will exhaust memory. Compile Listing 1 as follows: ...