<?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; LoadFactor</title>
	<atom:link href="http://www.bestjavainterviewquestions.com/category/java-util-questions/loadfactor/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>Load Factor</title>
		<link>http://www.bestjavainterviewquestions.com/load-factor/</link>
		<comments>http://www.bestjavainterviewquestions.com/load-factor/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 01:54:18 +0000</pubDate>
		<dc:creator>Ramakrishna</dc:creator>
				<category><![CDATA[LoadFactor]]></category>
		<category><![CDATA[define loadfactor]]></category>

		<guid isPermaLink="false">http://www.bestjavainterviewquestions.com/?p=436</guid>
		<description><![CDATA[Ques) What is LoadFactor? Rep) LoadFactor is useful to determine the point where the capacity of the Hashtable (HashMap) will be doubled For Hashtable initial capacity * loadfactory&#8211;&#62;11 * 0.75=8 This class implements a hashtable, which maps keys to values. Any non-null object can be used as a key or as a value.To successfully store [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Ques) What is LoadFactor?</strong></p>
<p><strong>Rep)</strong> <strong>LoadFactor </strong>is useful to determine the point where the capacity of the Hashtable (HashMap) will be doubled For <em>Hashtable</em> initial capacity * loadfactory&#8211;&gt;11 * 0.75=8</p>
<p>This class implements a<em> hashtable</em>, which maps keys to values. Any non-null object can be used as a key or as a value.To successfully store and retrieve objects from a Hashtable , the objects used as keys must implement the HashCode method and the equals method.</p>
<p>The load factor is a measure of how full the hash table is allowed to get before its capacity is automatically increased. When the number of entries in the Hashtable exceeds the product of the load factor and the current capacity, the capacity is increased by calling the rehash method.<br />
Therefore after starting 8th pair key values, the capacity of the <em>Hashtable</em> will be <span style="text-decoration: underline;"><strong>&#8220;Doubled&#8221;</strong></span> &#8211;&gt;11*2=22.</p>
<p>Hashtable ht=new Hashtable(100);</p>
<p>|__ It is the inital capacity of the hashtable</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li>August 24, 2008 -- <a href="http://www.bestjavainterviewquestions.com/define-earjar-and-war/" title="Define Ear,jar and war">Define Ear,jar and war</a> (0)</li><li>February 15, 2009 -- <a href="http://www.bestjavainterviewquestions.com/define-ejb-frame-work/" title="Define EJB frame work">Define EJB frame work</a> (1)</li><li>September 17, 2008 -- <a href="http://www.bestjavainterviewquestions.com/connecting-our-classsay-x-to-database-using-hibernate/" title="Connecting our Class(say x) to DataBase using Hibernate">Connecting our Class(say x) to DataBase using Hibernate</a> (0)</li><li>September 2, 2008 -- <a href="http://www.bestjavainterviewquestions.com/define-session-tracking-in-httpservlet/" title="Define Session Tracking in HttpServlet">Define Session Tracking in HttpServlet</a> (0)</li><li>January 26, 2009 -- <a href="http://www.bestjavainterviewquestions.com/file-uploading-using-servlet/" title="File Uploading Using Servlet">File Uploading Using Servlet</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.bestjavainterviewquestions.com/load-factor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

