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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Discuss the significances of jdbc.

924


Write an sql to find all records having all numeric characters in a field ?

974


Expalin the method of calling a stored procedure from jdbc.

974


What are collection pools?

978


What is jdbc class forname?

967


What is “dirty read” in JDBC? Which isolation level prevents dirty read?

1017


What is the difference between jdbc and jndi?

1010


What are the factors that the jdbc driver performance depends upon?

973


What is transaction processing in jdbc?

1011


What port does jdbc use?

972


explain about special characters?

977


Is it possible to connect to multiple databases simultaneously?

1069


What is an SQL Locator?

1135


Is it possible to connect to multiple databases simultaneously? Using single statement can one update or extract data from multiple databases?

1027


What driver should I use for scalable Oracle JDBC applications?

980