What will happen when ResultSet is not closed?



What will happen when ResultSet is not closed?..

Answer / sekhar reddy

It also depends on the JDBC driver and it would also not happen if it is a pooled connection. A pooled connection is returned to the pool and would only actually be closed later when its lifetime has expired. In the meanwhile easily more than thousands statements and/or resultsets might have been opened and left unclosed.

However that presumes
- That the driver does do that.
- That the connection close actually cleans the resources.

There was an Oracle driver that did not do the second.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More JDBC Interview Questions

What is the JDBC?

0 Answers  


What are restrictions on triggers?

0 Answers  


How can we retrieve the file in the oracle database?

0 Answers  


Is jdbc an api?

0 Answers  


List the advantages of using datasource?

0 Answers  






How do I find jdbc version?

0 Answers  


What is the difference between Union, Unionall ?

1 Answers  


How can we retrieve data from the resultset?

0 Answers  


Does JDBC support stored procedures?

0 Answers  


what is call level interface?

1 Answers  


how do we get the connection from connection pool

1 Answers  


How to retrieve warnings in jdbc?

0 Answers  


Categories