What is the difference between AutoCloseable and Closeable?
(a) Closeable is an interface and AutoCloseable is a concrete class
(b) Closeable throws IOException; AutoCloseable throws Exception
(c) Closeable is a concept; AutoCloseable is an implementation
(d) Closeable throws Exception; AutoCloseable throws IOException
I had been asked this question in homework.
The doubt is from AutoCloseable, Closeable and Flushable Interfaces in section Session Management, JSP & API of Java