Method x1() must either catch IOException or declare that it, too, throws IOException or a superclass of IOException.
Answer: Option 3.
Explanation:
IOException is a special case which developers use in the code to toss a disappointment in Input and Output activities. It is a checked exemption. The software engineer needs to subclass the IOException and should toss the IOException subclass dependent on the specific circumstance.
It can toss an IOException when the either the stream itself is adulterated or some mistake happened during perusing the information for example Security Exceptions, Permission Denied and so on as well as a lot of Exceptions which are gotten from IOException .