<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Java Interview Questions &#187; Jdbc executeUpdate</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/jdbc-executeupdate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bestjavainterviewquestions.com</link>
	<description>Java Interview Questions &#124; Core Java Interview Questions &#124; Advanced Java Interview Questions &#124; EJB Interview Questions &#124; J2EE Interview Questions &#124; Hibernate Interview Questions</description>
	<lastBuildDate>Fri, 30 Jul 2010 06:00:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Define Connection Pooling</title>
		<link>http://www.bestjavainterviewquestions.com/define-connection-pooling/</link>
		<comments>http://www.bestjavainterviewquestions.com/define-connection-pooling/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 05:24:36 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Connection Pooling]]></category>
		<category><![CDATA[Jdbc executeUpdate]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=411</guid>
		<description><![CDATA[Q) What Is Connection Pooling? A) Connection pooling is a technique of creating and managing a pool of connections that are ready for use by any thread that needs them. This technique of &#8220;pooling&#8221; connections is based on the fact that most applications only need a thread to have access to a JDBC connection when [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Q) What Is Connection Pooling? </strong></p>
<p><strong>A) </strong>Connection pooling is a technique of creating and managing a pool of connections that are ready for use by any thread that needs them.</p>
<p>This technique of &#8220;pooling&#8221; connections is based on the fact that most applications only need a thread to have access to a JDBC connection when they are actively processing a transaction, which usually take only milliseconds to complete. When not processing a transaction, the connection would otherwise sit idle. Instead, connection pooling allows the idle connection to be used by some other thread to do useful work.</p>
<p>In practice, when a thread needs to do work against a MySQL or other database with JDBC, it requests a connection from the pool. When the thread is finished using the connection, it returns it to the pool, so that it may be used by any other threads that want to use it.</p>
<p>When the connection is &#8220;loaned out&#8221; from the pool, it is used exclusively by the thread that requested it. From a programming point of view, it is the same as if your thread called DriverManager.getConnection() every time it needed a JDBC connection, however with connection pooling, your thread may end up using either a new, or already-existing connection.</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/explain-java-takes-care-of-registering-the-driver/" title="Explain Java takes care of registering the driver"><img src="Array" alt="Explain Java takes care of registering the driver" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/479/" title="What is Thread Safe Servlet"><img src="Array" alt="What is Thread Safe Servlet" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/benefits-of-connection-pooling/" title="Benefits of Connection Pooling"><img src="Array" alt="Benefits of Connection Pooling" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/how-application-creates-a-connection/" title="How application creates a connection"><img src="Array" alt="How application creates a connection" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/difference-between-executeupdate-and-executequery-methods/" title="Difference between executeUpdate and executeQuery Methods"><img src="Array" alt="Difference between executeUpdate and executeQuery Methods" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/define-connection-pooling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Explain executeUpdate Method</title>
		<link>http://www.bestjavainterviewquestions.com/explain-executeupdate-method/</link>
		<comments>http://www.bestjavainterviewquestions.com/explain-executeupdate-method/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 14:40:58 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Jdbc executeUpdate]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=431</guid>
		<description><![CDATA[ExecuteUpdate() Mehod :- ExecuteUpdate returns and integer indicating the number of rows effected(changes) When stmt.executeUpdate is called, the JDBC Driver sends the SQL Statement(create&#8212;) to the database server. The database server parses and execute the SQL statement Note: Any Business application uses the Database servers to perform the following 4 operations(getting the data for available [...]]]></description>
			<content:encoded><![CDATA[<p><strong>ExecuteUpdate() Mehod :- </strong>ExecuteUpdate returns and integer indicating the number of rows effected(changes)</p>
<p>When stmt.executeUpdate is called, the JDBC Driver sends the SQL Statement(create&#8212;) to the database server. The database server parses and execute the SQL statement</p>
<p><strong>Note: </strong>Any Business application uses the Database servers to perform the following 4 operations(getting the data for available in the database is called as Reading the data)</p>
<p><em><strong>CURD</strong></em> is nothing but</p>
<p>C :- Create (insert—-&gt;statement)</p>
<p>U :- Update (update—–&gt;statement)</p>
<p>R :- Read (select——-&gt;statement)</p>
<p>D :- Delete (delete——&gt;statement)</p>
<p>for Ex: we can provide the code as shown below to perform create operation</p>
<p>Statement stmt=con.createStatement();</p>
<p>String Vsql=”insert into student values(200,’ram’,22,’ampet’);</p>
<p>stmt.executeUpdate(Vsql);</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.bestjavainterviewquestions.com/hibernate-introduction/" title="Hibernate Introduction"><img src="Array" alt="Hibernate Introduction" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/java-exception-handling-questions/" title="Java Exception Handling Questions"><img src="Array" alt="Java Exception Handling Questions" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/difference-between-stateful-and-stateless-session-bean/" title="Difference Between StateFul and Stateless Session Bean"><img src="Array" alt="Difference Between StateFul and Stateless Session Bean" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/jsf-important-questions/" title="JSF Important Questions"><img src="Array" alt="JSF Important Questions" /></a></li><li><a href="http://www.bestjavainterviewquestions.com/difference-between-interface-and-abstract-class/" title="Difference between Interface and Abstract Class"><img src="Array" alt="Difference between Interface and Abstract Class" /></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/explain-executeupdate-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
