0
what does mean "error: unreported exception FileNotFoundException; must be caught or declared to be thrown"
2 ответов
+ 2
using buffer classes to input cause i/o errors during runtime
if you're using bufferedreader to input,
you have to either add 'throws IOException' after the function signature
or put the part of the function, where you're taking input under 'try{}' block and 'catch' exception after that
0
caught then handle. if you have to code to catch errors you throw the OS will raise an exception resulting in your program terminating unusually.