
Hi,
What will happen if I close connection before closing the resultset in the finally clock?
e.g.
finally... { ... conn.close(); rs.Close(); }
If i do as above ... what will happen?

If your connection management code is using connection pooling, the connection.close would just put the connection back in the pool. Additionally, some database have a cursor resource on the server that will not be freed properly unless it is explicitly closed.