FileInputStream fis = new FileInputStream("test.txt");
fis.readAllBytes();
why does fis = null does not make this stream object ready for garbage collection why does it lead to memory leak why do we have to close the stream object
FileInputStream fis = new FileInputStream("test.txt");
fis.readAllBytes();
why does fis = null does not make this stream object ready for garbage collection why does it lead to memory leak why do we have to close the stream object