OOM之Java heap space
2020-07-23 本文已影响0人
Shaw_Young
public class JavaHeapSpaceDemo {
public static void main(String[] args) {
String str = "young";
while (true){
str += str;
}
}
}
public class JavaHeapSpaceDemo {
public static void main(String[] args) {
String str = "young";
while (true){
str += str;
}
}
}