OutOfMemory (OOM)的类型与检测
Java堆溢出Java堆存的是对象的实例,所以无限添加对象实例很容易造成堆溢出public class OutOfMemoryError_Heap { static class OOMObject{} public static void main(String[] args) { List <OOMObject> list = new ArrayList<OOMOb