public static void main(String[] args) {
new OutOfMemoryTest().test();
}
//递归
public void test() {
test();
}
Exception in thread "main" java.lang.StackOverflowError
at com.lang.OutOfMemoryTest.test(OutOfMemoryTest.java:12)
public static void main(String[] args) {
new OutOfMemoryTest().test();
}
//递归
public void test() {
test();
}
Exception in thread "main" java.lang.StackOverflowError
at com.lang.OutOfMemoryTest.test(OutOfMemoryTest.java:12)