今天爱分享给大家带来java 堆内存溢出异常代码编写例子【附代码】,希望能够帮助到大家。
public static void main(String[] args) {
List list = new LinkedList();
while(true){
list.add(new HeapOOM());
}
}
死循环new对象,堆内存溢出异常

常见问题
不显示资源下载框怎么办?
请更换谷歌,微软,火狐等浏览器
原文链接:https://blog.itblood.com/898.html,转载请注明出处。
