Thread
:
when to use try...catch
View Single Post
#
3
(
permalink
)
11-18-2007, 10:52 PM
ravian
Senior Member
Join Date: Nov 2007
Posts: 115
Thanks. Got the idea.
I checked Java Docs and found following signature for FileOutStream constructor:
Code:
public FileOutputStream(File file) throws FileNotFoundException
which means we have to write in under try...catch block.
ravian
View Public Profile
Send a private message to ravian
Find all posts by ravian