Home » JAVA Programming » Interfaces » Question
  1. It is a good practise to not throw which exception in close() method of autocloseable?
    1. InterruptedException
    2. IOException
    3. CloseException
    4. CustomException
    5. None of these
Correct Option: A

InterruptedException interacts with a thread’s interrupted status and runtime misbehavior is likely to occur if an InterruptedException is suppressed.



Your comments will be displayed only after manual approval.