Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)
Want to become a Java Expert? Join Java Certification now!!

1 Answer

0 votes
by (26.7k points)

These are the following scenario where mostly IOException can be thrown:

1. If you are reading some network file and suddenly got disconnected.

2. If you are streaming to read data and in the meantime, some other process closed that stream.

3. If you want to read or write some files, but due to permission issues you cannot able to do that.

4. Want to read some local files, but not available.

5. Go to write any file, but the disk space is not available.

I hope this will help.

Want to become a Java Expert? Join Java Course now!!

Related questions

0 votes
1 answer
asked Feb 17, 2021 in Java by Jake (7k points)
0 votes
1 answer
0 votes
1 answer
asked Feb 20, 2020 in Java by angadmishra (6.5k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...