The IOException is part of the interface. Errors usally occur when a file is not present, the disk is full, you are missing reading or writing privledges or you have network connectivity issues.
Depending on the implementation it might as well throw no errors at all even though its still declared in the interface.
2
solved Explanation for IOException [closed]