PRO192_-_C2_-_RE_-_SU_2023_558.webp
N

PRO192_-_C2_-_RE_-_SU_2023_558.webp

(Choose 1 answer)
Here is part of the hierarchy of exceptions that may be thrown during file IO operations:
Exception +-- IOException +-- FileNotFoundException
Suppose you had a method X that is supposed to open a file by name and read data from it.inside X may throw a FileNotFoundException or other exceptions descended from IOExcept does not have any try-catch statements, which of the following options are true?
A. The method X must be declared as throwing IOException or Exception.
B. The method X must be declared as throwing FileNotFoundException.
C. Any method that calls X must use try-catch, specifically catching FileNotFoundException
D. No special precautions need to be taken.


7

Thông tin

Category
PRO192
Thêm bởi
Naobito2000
Ngày thêm
Lượt xem
2,217
Lượt bình luận
13
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_C2_-_RE_-_SU_2023_558.webp
File size
66.9 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom