-
What is the difference between AutoCloseable and Closeable?
-
- Closeable throws Exception; AutoCloseable throws IOException
- Closeable is a concept; AutoCloseable is an implementation
- Closeable throws IOException; AutoCloseable throws Exception
- Closeable is an interface and AutoCloseable is a concrete class
- None of these
Correct Option: C
Closeable extends AutoCloseable and both are interfaces. Closeable throws IOException and AutoCloseable throws Exception.