<?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, 03 Feb 2012 10:23:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.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>August 10, 2008 -- <a href="http://www.bestjavainterviewquestions.com/example-programs-of-lifecycle-of-servlets/" title="Example programs of lifecycle of servlets">Example programs of lifecycle of servlets</a> (0)</li><li>October 16, 2008 -- <a href="http://www.bestjavainterviewquestions.com/write-a-short-notes-on-tomcat/" title="Write a short notes on TOMCAT">Write a short notes on TOMCAT</a> (0)</li><li>October 16, 2008 -- <a href="http://www.bestjavainterviewquestions.com/what-the-webxml-file-can-do/" title="What the web.xml file can do">What the web.xml file can do</a> (1)</li><li>October 27, 2008 -- <a href="http://www.bestjavainterviewquestions.com/final-variables-and-methods/" title="Final Variables and Methods">Final Variables and Methods</a> (0)</li><li>September 17, 2008 -- <a href="http://www.bestjavainterviewquestions.com/example-of-hibernate/" title="Example of Hibernate">Example of Hibernate</a> (0)</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>January 14, 2009 -- <a href="http://www.bestjavainterviewquestions.com/sockets-programming-in-java-for-clientserver/" title="Sockets programming in Java for Client/Server">Sockets programming in Java for Client/Server</a> (0)</li><li>September 22, 2008 -- <a href="http://www.bestjavainterviewquestions.com/creating-the-java-class/" title="Creating the Java Class">Creating the Java Class</a> (0)</li><li>July 21, 2008 -- <a href="http://www.bestjavainterviewquestions.com/java-swings-interview-questions-2/" title="Java Swings Interview Questions">Java Swings Interview Questions</a> (0)</li><li>May 22, 2008 -- <a href="http://www.bestjavainterviewquestions.com/core-java-interview-questions/" title="Core Java Interview Questions">Core Java Interview Questions</a> (1)</li><li>September 22, 2008 -- <a href="http://www.bestjavainterviewquestions.com/what-is-api/" title="What is API">What is API</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/explain-executeupdate-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

