In the case of the construction below, do you need to manually call br.close (); for it seems like there is a try with resources construction and, in theory, she herself will do everything necessary to free up resources. I ask the question, because the environment does not suggest that close is not needed here.

try (BufferedReader br = new BufferedReader(new FileReader(configFile))) { //TODO: )0 br.close(); } catch (IOException ex) { } 
  • one
    Do not, it will close itself. - Sergey Gornostaev
  • Only when it closes is a good question. Maybe in a split second, maybe in a minute. For small projects it is absolutely not important. And for high-loaded ones it can already be fundamental. - KoVadim

0