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 action chaining ?

605


What are the components of struts framework?

559


What is ValueStack and OGNL?

545


Which configuration files are used in struts?

502


How to handle exceptions in structs?

549






How to convert struts to spring mvc?

511


What is strut action mapping?

487


What is the purpose of form-beans tag in struct-config.xml?

532


State the procedure for using forward attribute of link tag’s.

510


What are Struts2 core components?

537


What is the purpose of @results annotation?

694


How action-mapping tag is used for request forwarding in struts configuration file?

556


What is validate() and reset() functions?

543


When should be opt for struts framework?

563


What is the purpose of '@keyproperty'?

551