Auto Closeable interface is specifically intended to be implemented by classes that can be used with the try-with-resources statement.
What is a try with resources statement?
A statement try with resources is a try statement that declares one or more resources. A resource is an object that must be closed once the program has finished utilizing it. Due to the try -with-resources clause, each resource is closed at the end of the statement. any object created in Java.
What is the use of Auto Closeable in Java?
When leaving a try -with-resources block, an Auto Closeable object whose close() function has been stated in the resource specification header will automatically be called. The fast release ensured by this design prevents mistakes and exceptions related to resource exhaustion that would otherwise happen.
Learn more about interface: https://brainly.com/question/14235253
#SPJ4