package test; public class Test { public static void main(String[] args) { final int num2 = Integer.parseInt(args[0]); } } 编译时,会报Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at test.Test.main(Test.java:7) 最终的结论是: 运行时忘了加…
9.1今天不知道自己瞎搞eclipse的时候按到了什么键,然后再启动程序的时候就会报错: 如下: Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"(溢出内存错误) 解决方案: 然后就发现自己原来设置扩大堆内存的没有了,要重新设置 如图: 重新启动项目,OK解决了!!哈哈哈…