Why there is a need to throw IOException ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Why there is a need to throw IOException ?

20th Mar 2017, 2:38 PM
Prashant Singh
Prashant Singh - avatar
3 Respostas
+ 2
I/O means Input or Output.In java the methods in which an input operation is failed throws IOExeption. This won't be thrown for reading and writing to memory.....Java automatically deals with it.
20th Mar 2017, 3:07 PM
Aniket Dutta
Aniket Dutta - avatar
+ 1
In general,Ā I/OĀ means Input or Output. Those methods throw theĀ IOExceptionwhenever an input or output operation is failed or interpreted. Note that this won't be thrown for reading or writing to memory asĀ JavaĀ will be handling it automatically.
20th Mar 2017, 4:36 PM
udara
udara - avatar
+ 1
In general,Ā I/OĀ means Input or Output. Those methods throw theĀ IOExceptionwhenever an input or output operation is failed or interpreted. Note that this won't be thrown for reading or writing to memory asĀ JavaĀ will be handling it automatically.
20th Mar 2017, 4:38 PM
udara
udara - avatar