Computer Science, asked by imposter62, 6 months ago

Assume that method1 calls method2, and method2 calls method3. Methods might throw a
InterruptedException. Can the program be written so that method1 handles the exception?
(1 Point)
Yes, if the methods header includes "throws InterruptedException"
Yes, if the headers of both method and method include "throws InterruptedException"
No, the exception must be handled by method or its caller, method2
No, method3 must handle the exception​

Answers

Answered by anushkapaswan84
0

Answer:

Yes, if the methods header includes "throws InterruptedException" Yes, if the headers of both method and method include "throws InterruptedException" No, the exception must be handled by method or its caller, method2. No, method3 must handle the exception

Similar questions