I read that we need not close an resource explicitly , it will be closed by java itself, let's say if i have written a code .
try(FileInputStream fis = new FileInputStream("");){
// code to to somethings
}
the FileInputStream will be automatically closed , if while closing it generates an error , it will suppress that expression.
So if while closing an FileInputStream an exception is thrown, since the exception will be suppressed , the resource is not closed, Will it generate a resource leak ?