Vidyalelo
Java Programming · Q34

Java Session Management and JSP

Programming · Java Programming · question 34

Q34

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
Answer
C.
Closeable is a concept; AutoCloseable is an implementation
D.
Closeable throws Exception; AutoCloseable throws IOException

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board