try-with-resources in java and using c#

try-with-resources in java and uing c#
 declares and create  object in c# and input and output streams in java  andwill be automatically closed\flush\end after they are used.

note(its m C)

//////....java........///
When a stream is no longer needed, always close it using the close() method or
automatically close it using a try-with-resource statement. Not closing streams may cause
data corruption in the output file, or other programming errors.

0 comments:

Post a Comment

My Instagram