wat happen when the connection is nt closed in jdbc
n what vl happen when i interchange in executequery n
execute statements

Answer Posted / prasanthi reddy

when con.close() is executed the memory allocated for the
connection in the server is deallocated,and the connection
with the client will be terminated.
if we dont use con.close() even if our requirement is
completed,the connection will be remain in the server it is
the more burden to the server,it will kills the performance

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a custom tag?

547


What is the purpose of struct-config.xml in struct2?

564


What is meant by custom tags?

575


Where should struts xml be placed?

505


What’s the difference between struts and turbine?

558






What is the purpose of global-forwards tag in struct-config.xml?

584


How does struts work?

550


Who wrote struts?

556


What do you mean by actionform?

584


What is struts and why it is used?

505


What is difference between actionform and dynaactionform?

596


What are the two different types of validations that the validator framework supports?

530


What is actioncontext?

553


Name the different types of actions found in struts.

560


Why do we use struts?

579