Hi Manoj,
You can catch Exception
The above will catch any exception which subclasses Exception; however, this is not a recommended technique. If you're looking for an IOException or FileNotFoundException then your catch should look for that specifically ... makes things easier for anyone else using your code.
Hope that helps.
------------------
Jane Griscti
Sun Certified
Java 2 Programmer
"When ideas fail, words come in very handy" -- Goethe