Which interface is specifically intended to be implemented by classes that can be used with the try-with-resources statement?
-
AutoCloseable is the interface is specifically intended to be implemented by classes that can be used with the try-with-resources statement.According to the statementwe have to find that the interface is specifically intended to be implemented by classes that can be used with the try-with-resources statement.And for this purpose, we know that theThe try -with-resources statement is a try statement that declares one or more resources. A resource is an object that must be closed after the program is finished with it. The try -with-resources statement ensures that each resource is closed at the end of the statement.And for thisAutoCloseable are some functional interfaces in Java. and it is a An object that may hold resources (such as file or socket handles) until it is closed.So, AutoCloseable is the interface is specifically intended to be implemented by classes that can be used with the try-with-resources statement.Learn more about try-with-resources herehttps://brainly.com/question/3729664#SPJ4