Java / Exception
What is try-with-resources statement in Java?
The try-with-resources statement is a try statement that declares one or more resources, where resources are objects that must be closed and try-with-resources statement ensures that each resource is closed at the end of the statement.
This statement is introduced in Java 7.
More Related questions...