Wednesday, 4 November 2015

Java - What throws an IOException

Assume the scenarios as below:
  1. You were reading network file and got disconnected.
  2. Reading local file which is not available any more.
  3. Using some stream to read the data and some other process closes the stream.
  4. You are trying to read/write a file and don't have permission
  5. You were writing a file and disk space is not available anymore
All these scenarios result into IOException

No comments:

Post a Comment

Git merge branch to another branch

$ git checkout develop $ git pull $ git checkout test-branch $ git merge develop $ git push