<?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>SCJP Certification &#187; EnumSet</title>
	<atom:link href="http://www.scjp-certification.com/tag/enumset/feed" rel="self" type="application/rss+xml" />
	<link>http://www.scjp-certification.com</link>
	<description>Sun Certified Java Programmer Certification exam essentials</description>
	<lastBuildDate>Fri, 30 Sep 2011 05:54:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>What will be the result while compiling and running the code?</title>
		<link>http://www.scjp-certification.com/what-will-be-the-result-while-compiing-and-running-the-code.html</link>
		<comments>http://www.scjp-certification.com/what-will-be-the-result-while-compiing-and-running-the-code.html#comments</comments>
		<pubDate>Mon, 16 Nov 2009 11:56:26 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Questions]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[EnumSet]]></category>
		<category><![CDATA[exam guide]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[set]]></category>
		<category><![CDATA[study guide]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=411</guid>
		<description><![CDATA[import java.util.EnumSet; public final class EnumMeg { public static void main(String[] args) { Integer i = null; method(i); } static...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-result-while-compiing-and-running-the-code.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-result-while-compiing-and-running-the-code.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>import java.util.<strong><a href="http://www.scjp-certification.com/what-is-the-java-util-enumset-set.html">EnumSet</a></strong>;<br />
public final class EnumMeg<br />
                     {<br />
      public static void main(String[] args)<br />
      {<br />
           Integer i = null;<br />
           method(i);<br />
     }<br />
     static void method(int k){<br />
          System.out.println(k);<br />
     }<br />
}</p>
<p>It will compile but will throw a NullPointerException at runtime.   </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-result-while-compiing-and-running-the-code.html&amp;title=What%20will%20be%20the%20result%20while%20compiling%20and%20running%20the%20code%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-will-be-the-result-while-compiing-and-running-the-code.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the java.util.EnumSet set?</title>
		<link>http://www.scjp-certification.com/what-is-the-java-util-enumset-set.html</link>
		<comments>http://www.scjp-certification.com/what-is-the-java-util-enumset-set.html#comments</comments>
		<pubDate>Sat, 24 Oct 2009 12:20:32 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[enum]]></category>
		<category><![CDATA[EnumSet]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[set]]></category>
		<category><![CDATA[synchronized]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=311</guid>
		<description><![CDATA[The java.util.EnumSet set is a special purpose set. It is used to provide an implementation for better performance for enum...]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-java-util-enumset-set.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-java-util-enumset-set.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The java.util.EnumSet set is a special purpose set. It is used to provide an implementation for better performance for enum types. It is necessray that the elements in an enum set must come from a single enum type that is specified, explicitly or implicitly, when the set is created. They are represented internally as bit vectors. This representation is extremely compact and efficient.</p>
<p>The space and time performance of this class should be good enough to allow its use as a high-quality, type safe alternative to traditional int-based &#8220;bit flags.&#8221; Bulk operations should run very quickly if the specified collection is also an enum set. It is not synchronized and if multiple threads access an enum set concurrently, and at least one of the threads modifies the set, it should be synchronized externally. It is typically accomplished by synchronizing on some object that naturally encapsulates the enum set.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-java-util-enumset-set.html&amp;title=What%20is%20the%20java.util.EnumSet%20set%3F"><img src="http://www.scjp-certification.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.scjp-certification.com/what-is-the-java-util-enumset-set.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

