Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

What is the purpose of redirect result type?

0 Answers  


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

3 Answers   IBM,


What is the purpose of constant tag in struts.xml?

0 Answers  


What is struts in java with example?

0 Answers  


What is the purpose of @createifnull annotation annotation?

0 Answers  






Hi Friends, am new to struts.I read that " you can store variables in xml file(properties file) and for future enhancements we just call properties file . Now i want to implement this , where can i call properties file to enhance my application. My question is where this properties file will be called.

1 Answers  


Explain about the library tag?

0 Answers  


What are different Struts2 tags? How can we use them?

0 Answers  


Difference between struts1.2 and struts2.0?

3 Answers   Bank Of America, HCL, Value Labs,


What is the difference between filters and interceptors ?

0 Answers  


collection framework hirarchy?

5 Answers  


Is struts action class singleton?

0 Answers  






Categories