always a good practice, even when no exceptions are anticipated”
What it means exactly?
When you open a connection in a try catch block you have to close it in the finally block
meaning that finally block should contain: - close any file buffer pointers - close any database connection - reset (set to null) any variables.
Обсуждают сегодня