In Java, is there any way to get(catch) all exceptions instead of catch the exception individually?
exceptions
It is bad practice to catch Exception -- it's just too broad, and you may miss something like a NullPointerException in your own code.
For most file operations, IOException is the root exception. Better to catch that, instead.