不能,虽然你可以调用 System.gc() 或者 Runtime.gc(),但是没有办法保证 GC
的执行。
你能保证 GC 执行吗?
原文:https://www.cnblogs.com/programb/p/13018810.html