adplus-dvertising
frame-decoration

Question

It is a good practise to not throw which exception in close() method of autocloseable?

a.

IOException

b.

CustomException

c.

InterruptedException

d.

CloseException

Answer: (c).InterruptedException

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. It is a good practise to not throw which exception in close() method of autocloseable?