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 are the 4 types of jdbc drivers?

0 Answers  


What is ojdbc?

0 Answers  


How can we maintain the integrity of a database by using jdbc?

0 Answers  


Differentiate between stored procedure and functions?

0 Answers  


How MS-Access DB can be accessed over a network, using JDBC API?

0 Answers  






How to get the data from a table into a buffer?

2 Answers  


how we can remove hard code in java?

1 Answers   Satyam,


What is jdbc template?

0 Answers  


what are the advantages of JDBC?

7 Answers  


What are the considerations for deciding on transaction boundaries?

0 Answers  


What is meant by jdbc and odbc?

0 Answers  


Where jdbc drivermanager class is used?

0 Answers  


Categories