Vignesh Ganesh wrote:I thought of doing this way ...
I didn't write the catch because, the exception propagates to the caller.
Please suggest me if it is right way of doing it ?
Best Regards
Krishan
yes this should do although, since I am hyper paranoid, I would probably go for:
Of course, "is" will have to be declared outside your try block.
InputStream is;
try { ......