1. Compile the two attached java files 2. Invoke Java with arguments : -Xcomp -Xbatch StackOverflow 3. (optional) To make sure garbage collection happens, a debug build is needed, and invoke Java with arguments : -XX:+FullGCALot -Xcomp -Xbatch StackOverflow
|