FileInputStream fstream = new FileInputStream(someFile.getPath());
DataInputStream in = new DataInputStream(fstream);
Run Code Online (Sandbox Code Playgroud)
如果我打电话in.close(),它还会关闭fstream吗?我的代码给出了GC Exception,如下所示:
java.lang.OutOfMemoryError:超出了GC开销限制