http://www.oracle.com/technetwork/java/javase/memleaks-137499.html 3.1 Meaning of OutOfMemoryError One common indication of a memory leak is the java.lang.OutOfMemoryError error. This error is thrown when there is insufficient space to allocate an ob…
1.JAVA中的相对路径 file = new file("")与file = new file("./")方式相同,该路径为整个project的根目录(实际上为java虚拟机启动路径). 利用..可以返回上一层目录,file = new file("../")即project根目录的上一层目录. 可以利用Syetem.getProperty("user.dir")获得project目录,实际上相对路劲的基本目录即Syetem…