日期:2014-05-20  浏览次数:20760 次

内存溢出的问题
内存大小有10M,请写出让内存溢出的方法?

------解决方案--------------------
for example
Java code
List<int[]> list = new ArrayList<int[]>();
while (true) {
    list.add(new int[Integer.MAX_VALUE]);
}