Anupam Banerji wrote:Hi, I know that IO classes implement the Closeable interface, and I agree that learning things for an exam isn't the best way to go, but I'm curious: is there a list of classes in Java 8 that implement Closeable?
Am I going to have to go into the exam knowing just those that I've looked at in the OCP book by Oracle?
First off, you probably need AutoCloseable, not Closeable
Next, open Eclipse, Shift + Ctrl + T type AutoCloseable
Then F4
Enjoy the list (see attached)