jvm默认只有64M;
public static void main(String[] args){
byte b[] = new byte[1024*1024*65];//此时会报内存溢出;
}
点击java单元文件的右键--Run as --Run configurations...
2021-07-30 03:11:17
jvm默认只有64M;
public static void main(String[] args){
byte b[] = new byte[1024*1024*65];//此时会报内存溢出;
}
点击java单元文件的右键--Run as --Run configurations...