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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we handle exceptions in Struts programmatically?

595


What is the role of action class?

654


What are the cons of struts 2?

649


Why do the struts tags provide for so little formatting?

671


What is the purpose of '@keyproperty'?

669






1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they

2843


How does interceptor work in struts2?

606


How to override the default error message that can come during file uploading process?

659


Is struts compatible with other java technologies?

611


What is the purpose of action-mappings tag in struct-config.xml?

667


Can I have html form property without associated getter and setter formbean methods?

667


What is ValueStack and OGNL?

648


What is the different actions available in struts?

628


How struts2 supports internationalization?

738


What do you mean by action errors and what are the results they force?

675