- 1
Why there is a need to throw IOException ?
2 Respostas
+ 5
https://www.sololearn.com/Discuss/268158/?ref=app
your question has already been answered... 😐
+ 3
Basically it is "thrown", whenever it is needed or not. It means error occourance while doing some input/output process. As the process cannot be done - because of some issues, like file not found and not existing file cannot be read, for example - it must be communicated back to the process caller, the IOException is for that. We do not need errors, but there are errors anyway :)