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
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
English,
3 months ago
Science,
3 months ago
English,
6 months ago
Biology,
11 months ago
Social Sciences,
11 months ago