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 to use CallableStatement? specially how to use their index given ..

1 Answers  


Write an sql to find all records having all upper case alphanumeric characters in a field ?

0 Answers  


What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?

0 Answers  


Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?

0 Answers  


How to check jdbc connection in linux?

0 Answers  


How do I insert an image file (or other raw data) into a database?

0 Answers  


How to retrieve warnings in jdbc?

0 Answers  


What does the connection object represents?

0 Answers  


What class.forname will do while loading drivers of jdbc?

0 Answers  


Hi to all.. well i want to make a standalone application which can use the concept of connection pooling, constraint is that i have not to use any application server like weblogic etc. Please help me out. Thaks in advance.

3 Answers   Huawei,


When do we get java.sql.SQLException: No suitable driver found?

0 Answers  


How the JDBC application works?

0 Answers  


Categories