Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How can I use the JDBC API to access a desktop database like Microsoft Access over the network?

0 Answers  


Explain about Join?

0 Answers  


What are the methods which can verify the cursor particular position?

0 Answers  


How to execute bulk number of queries at once?

3 Answers   Wipro,


Is jdbc a web technology?

0 Answers  


Discuss the significances of jdbc.

0 Answers  


Give a way to check that all result sets have bin accessed and update counts are generated by execute method.

0 Answers  


How to check jdbc connection in linux?

0 Answers  


what is meant by connection pooling?

4 Answers  


What is the use of statement in jdbc?

0 Answers  


How to insert an image or raw data into database?

0 Answers  


preparedstatement p= new preparedstatement is it possible ?

10 Answers   Fidelity, IBM, Infrasys,


Categories