<?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; Java Connections</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/java-jdbc-questions/java-connections/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>How application creates a connection</title>
		<link>http://www.bestjavainterviewquestions.com/how-application-creates-a-connection/</link>
		<comments>http://www.bestjavainterviewquestions.com/how-application-creates-a-connection/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 12:59:53 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[Java Connections]]></category>
		<category><![CDATA[Java Connectivity]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=422</guid>
		<description><![CDATA[Q) How can your application creates a connection? Rep) Connection is an Interface. The JDBC Driver provides a class implementing java.sql.connection interface When our application calls DriverManager.getConnection method it internally calls the ConnectMethod provide by the JDBC Driver Vender in the Driver class. The code of the Connect Method connects to the DBServer and Creates [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Q) How can your application creates a connection?<br />
</strong></p>
<p><strong>Rep) </strong>Connection is an Interface. The <em>JDBC Driver</em> provides a class implementing java.sql.connection interface</p>
<p>When our application calls <em>DriverManager.getConnection</em> method it internally calls the <em>ConnectMethod provide by the JDBC Driver Vender </em>in the Driver class. The code of the Connect Method connects to the <em>DBServer and Creates</em> an object based on a class <em>implementation the connection</em> interfaces.</p>
<p>In order to register a driver with a driver manager.we can provide the code</p>
<p>Class.forName(oracle.jdbc,driver.OracleDriver());</p>
<p><em>//Takescare of regestring the Driver.</em></p>
<p>After executing of this code class is loaded in memory then the static block will be executed.static block consist of the code which can register the driver. It isthe responsibility of every JDBC vender to provide the static block</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li>June 17, 2008 -- <a href="http://www.bestjavainterviewquestions.com/awt-interview-questions-3/" title="AWT Interview Questions">AWT Interview Questions</a> (0)</li><li>September 8, 2008 -- <a href="http://www.bestjavainterviewquestions.com/cookie-examples/" title="Cookie Examples">Cookie Examples</a> (0)</li><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 23, 2008 -- <a href="http://www.bestjavainterviewquestions.com/java-package/" title="Java Package">Java Package</a> (0)</li><li>March 25, 2009 -- <a href="http://www.bestjavainterviewquestions.com/creating-a-stateful-session-bean/" title="Creating a Stateful session Bean">Creating a Stateful session Bean</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/how-application-creates-a-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

