Why should I call close() on a ResultSet and Connection instance?

Viewed 17741

When I don't need to use instances of those ResultSet and Connection anymore in my program, why should I call the .close() method on both of them ?

What are the dangers (if any) of not doing so ?

4 Answers
Related