BufferedInputStream bis = new BufferedInputStream(new FileInputStream("filepath"));
...
read from bis
...
bis.close();
i didnt close FileInputStream, Can BufferedInputStream’s close() function close FileInputStream?
or is there any memory problem?
thanks…
Yes.
Java IOclasses are based on Decorator Pattern.No.