By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,541 Members | 1,109 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,541 IT Pros & Developers. It's quick & easy.

what is the use of implementing closeable interface??????

P: 16
Hi everybody,

Can anybody tell me what is the use of implementing closeable interface by Input and Output streams when there is already close() method in them????

Please tell me.....

Thanks in Advance
Vinoda
Dec 22 '06 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
Hi everybody,

Can anybody tell me what is the use of implementing closeable interface by Input and Output streams when there is already close() method in them????

Please tell me.....

Thanks in Advance
Vinoda
Input and output streams implement the closable interface since they can be closed and so they implement the close method to fufill the contract. You do not need to implement the closable interface in your classes unless if you are writting your own input/output streams.
Dec 26 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.