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

Answers were Sorted based on User's Feedback



wat happen when the connection is nt closed in jdbc n what vl happen when i interchange in executeq..

Answer / sitaram

when con.close() is executed the memory deallocated in the
server. if we don't use con.close(),connection will be
increased in the server. suppose the connections size are
reached to max connection, nobody access the database in the
site. This is performance issue.

Is This Answer Correct ?    4 Yes 0 No

wat happen when the connection is nt closed in jdbc n what vl happen when i interchange in executeq..

Answer / 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

More Struts Interview Questions

Give an alternative way to protect jsp’s with not much features from direct access.

0 Answers  


What are the components of struts?

0 Answers  


what is the advantages and diadvantages of Struts?

1 Answers  


How you will enable front-end validation based on the xml in validation.xml?

0 Answers  


how handle when client send multiple request at atime for multiple servlets servlets?

3 Answers   IBM,






what is the use of cvs in struts?

2 Answers  


Is struts compatible with other java technologies?

0 Answers  


What does it cost to replace struts?

0 Answers  


Explain about token feature in struts?

0 Answers   Tech Mahindra,


How to combine the struts with velocity template?

0 Answers  


What is the use of form bean in struts?

0 Answers  


What is the use of jsonvalidation in struts?

0 Answers  


Categories