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 the purpose of global-forwards tag in struct-config.xml?

662


What is package name in struts xml?

661


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

676


What are action errors and error?

660


What is the difference between validation.xml and validator-rules.xml files in struts?

589






What are the main classes which are used in struts application?

581


What is the apache struts vulnerability?

607


What is action support class in struts2?

655


What is the difference between struts and spring? Explain

569


What is the default suffix for Struts2 action URI and how can we change it?

612


What is dispatch action class?

703


Is Struts Framework part of J2EE?

688


What is execute method in struts?

574


Is struts action class singleton?

635


What does params interceptor?

609