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

What are the measures to connect to the db using jdbc?

0 Answers  


How can you make a connection?

0 Answers  


Is jdbc open source?

0 Answers  


How can you sort dates?

1 Answers  


How can I instantiate and load a new CachedRowSet object from a non-JDBC source?

0 Answers  


What is difference between java.util.Date and java.sql.Date?

0 Answers  


What is ojdbc14 jar?

0 Answers  


How to check null value in JDBC?

1 Answers   CTS,


What does the jdbc resultsetmetadata interface?

0 Answers  


how can we get the metaData (columnNames) from a table which has no Records..

2 Answers  


Why we use while rs next ())?

0 Answers  


How can I know when I reach the last record in a table, since JDBC doesn't provide an EOF method?

0 Answers  


Categories