Programming Tip of the Day – Always close what you open

If you open connection to a database, don’t forget to close it.

If you open a stream to Reading or writing a File, don’t forget to close it.

Moral: Always close what you open unless you explicitly need it.

Programming Tip of the Day is brought to you by GUVI.  It is a collection of commonly known, yet commonly made mistakes by developers from time to time.

If you want to get programming tips by GUVI on a regular basis, Subscribe to GUVI Blogs by entering your email id in the “FOLLOW BLOG BY EMAIL” section.

You may also like...

0 0 votes
Article Rating
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
karuthan
7 years ago

“செய்வான திருந்த செய்”

1
0
Would love your thoughts, please comment.x
()
x