<?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; import</title>
	<atom:link href="http://www.scjp-certification.com/tag/import/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 are the types of static import?</title>
		<link>http://www.scjp-certification.com/what-are-the-types-of-static-import.html</link>
		<comments>http://www.scjp-certification.com/what-are-the-types-of-static-import.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 05:34:07 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[operator]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[static import]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=521</guid>
		<description><![CDATA[Static import is a new feature introduced in j2SE 5.0. It allows the static members of the imported class to...]]></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-are-the-types-of-static-import.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-types-of-static-import.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Static import is a new feature introduced in j2SE 5.0. It allows the static members of the imported class to be treated as if they were declared in the class that uses them. It is now no longer required to use the static class name and dot operator as was required before. Static imports are of the following two types:
<ol>
<li>One in which all the members of a particular static class are imported:<br />
import static packageName.ClassName.*; </li>
<li>And the other in which only a particular member of a class is imported:<br />
import static packageName.ClassName.membername;</li>
</ol>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-types-of-static-import.html&amp;title=What%20are%20the%20types%20of%20static%20import%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-are-the-types-of-static-import.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Static Import statements</title>
		<link>http://www.scjp-certification.com/static-import-statements.html</link>
		<comments>http://www.scjp-certification.com/static-import-statements.html#comments</comments>
		<pubDate>Wed, 26 Aug 2009 12:16:06 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[J2SE 5.0]]></category>
		<category><![CDATA[static]]></category>
		<category><![CDATA[static import]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=121</guid>
		<description><![CDATA[The static import is a new feature of J2SE 5.0 that allows unqualified access to static members without inheriting from...]]></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%2Fstatic-import-statements.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fstatic-import-statements.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The static import is a new feature of J2SE 5.0 that allows unqualified access to static members without inheriting from the type containing the static members. It allows you to refer to imported static members as if they were declared in the class that uses them. The class name and a dot (.) are not required to use an imported static member. A static import declaration has two forms &#8211; one that imports a particular static member and one that imports all static members of a class.</p>
<p>Static imports are of the following two types:
<ol>
<li>One in which all the members of a particular static class are imported:<br />
<strong>import static packageName.ClassName.*;</strong> </li>
<li>And the other in which only a particular member of a class is imported:<br />
<strong>import static packageName.ClassName.membername; </strong></li>
</ol>
<p><strong>key points:</strong> The syntax of an import statement must be import static followed by the fully qualified name of the static member to be imported.</p>
<p>An asterisk (*) sign must be used at the end of the declaration. The asterisk (*) sign specifies that all static members of the specified class would be available for use within the class declared in the file.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fstatic-import-statements.html&amp;title=Static%20Import%20statements"><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/static-import-statements.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

