Can you readwrite to file without using exception handling c
Can you read/write to file without using exception handling concept in Java? Why or why not?
 Can you read/write to file without using exception handling concept in Java? Why or why not?
Solution
No,
We cannot read /write to a file without using exception handling as reading or writing. If an exception is thrown it as Checked Exception and checked exceptions can’t be ignored in java as it occurs because of User’s fault. So here we require handling those exceptions. usually in this case, FileNotFoundException or IOException is thrown

