<?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 4 You</title>
	<atom:link href="http://scjp4u.com/feed" rel="self" type="application/rss+xml" />
	<link>http://scjp4u.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 09 Jun 2011 09:56:02 +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 is the parseObject() method?</title>
		<link>http://scjp4u.com/what-is-the-parseobject-method.html</link>
		<comments>http://scjp4u.com/what-is-the-parseobject-method.html#comments</comments>
		<pubDate>Thu, 24 Mar 2011 07:46:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Certification]]></category>

		<guid isPermaLink="false">http://www.ucertify.com/article/index.html?id=115187</guid>
		<description><![CDATA[The parseObject() method parses text from a string to produce a Number. The method starts the parsing process by parsing the text starting at the index given by pos. If parsing succeeds, then the index of pos is updated to the index after the last charact [...]]]></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%2Fscjp4u.com%2Fwhat-is-the-parseobject-method.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fscjp4u.com%2Fwhat-is-the-parseobject-method.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The parseObject() method parses text from a string to produce a Number. The method starts the parsing process by parsing the text starting at the index given by pos. If parsing succeeds, then the index of pos is updated to the index after the last character used, and the parsed number is returned. The new pos can be used to indicate the starting point for the next call to this method. Following is the general format of the method:</p>
<p><span class="stx">parseObject public final Object parseObject(String source, ParsePosition pos)</span></p>
<p>Here, source is a String, part of which should be parsed, pos is a ParsePosition object with index and error index information as described above. This method throws NullPointerException if pos is null.<br />
Download practice question and study guide for  <a href="http://www.ucertify.com/exams/Oracle/CX310-065.html">CX310-065</a> for exam.</p>
<div style="background: silver;">
<ul>
<li> Pass <a href="http://www.ucertify.com/exams/Oracle/CX310-065.html">CX310-065 Certification</a></li>
<li>Download Free Practice For<a href="http://www.ucertify.com/download/CX310-065.html"> CX310-065 </a> Exam</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://scjp4u.com/what-is-the-parseobject-method.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the format() method?</title>
		<link>http://scjp4u.com/what-is-the-format-method.html</link>
		<comments>http://scjp4u.com/what-is-the-format-method.html#comments</comments>
		<pubDate>Thu, 24 Mar 2011 07:46:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Certification]]></category>

		<guid isPermaLink="false">http://www.ucertify.com/article/index.html?id=115179</guid>
		<description><![CDATA[The format() method belongs to the NumberFormat class. This method gives specialization of format. Following is the general format of the method:

public final String format(double number) 

This method throws ArithmeticException if rounding is needed wit [...]]]></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%2Fscjp4u.com%2Fwhat-is-the-format-method.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fscjp4u.com%2Fwhat-is-the-format-method.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The format() method belongs to the NumberFormat class. This method gives specialization of format. Following is the general format of the method:</p>
<p><span class="stx">public final String format(double number)</span> </p>
<p>This method throws ArithmeticException if rounding is needed with rounding mode being set to RoundingMode.UNNECESSARY.<br />
 Best exam simulation <a href="http://www.ucertify.com/exams/Oracle/CX310-065.html" >Oracle CX310-065</a> download free trial.</p>
<div style="background: silver;">
<ul>
<li> Pass <a href="http://www.ucertify.com/exams/Oracle/CX310-055.html">CX310-055 Certification</a></li>
<li>Download Free Practice For<a href="http://www.ucertify.com/download/CX310-055.html"> CX310-055 </a> Exam</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://scjp4u.com/what-is-the-format-method.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the parse() method?</title>
		<link>http://scjp4u.com/what-is-the-parse-method.html</link>
		<comments>http://scjp4u.com/what-is-the-parse-method.html#comments</comments>
		<pubDate>Thu, 24 Mar 2011 07:46:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Certification]]></category>

		<guid isPermaLink="false">http://www.ucertify.com/article/index.html?id=115180</guid>
		<description><![CDATA[The parse() method parses the text from the beginning of the given string to produce a Number. The method may not use the entire text of the given string. Following is the general format of the method: 

public Number parse(String source) throws ParseExce [...]]]></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%2Fscjp4u.com%2Fwhat-is-the-parse-method.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fscjp4u.com%2Fwhat-is-the-parse-method.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The parse() method parses the text from the beginning of the given string to produce a Number. The method may not use the entire text of the given string. Following is the general format of the method: </p>
<p><span class="stx">public Number parse(String source) throws ParseException </span></p>
<p>Here, source is a String whose beginning should be parsed and this method returns a Number parsed from the string. This method throws ParseException if the beginning of the specified string cannot be parsed.<br />
 Best exam simulation <a href="http://www.ucertify.com/exams/Oracle/CX310-065.html" >free download CX310-065</a></p>
<div style="background: silver;">
<ul>
<li> Pass <a href="http://www.ucertify.com/exams/Oracle/CX310-091.html">CX310-091 Certification</a></li>
<li>Download Free Practice For<a href="http://www.ucertify.com/download/CX310-091.html"> CX310-091 </a> Exam</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://scjp4u.com/what-is-the-parse-method.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the parse() method?</title>
		<link>http://scjp4u.com/what-is-the-parse-method-2.html</link>
		<comments>http://scjp4u.com/what-is-the-parse-method-2.html#comments</comments>
		<pubDate>Thu, 24 Mar 2011 07:46:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Certification]]></category>

		<guid isPermaLink="false">http://www.ucertify.com/article/index.html?id=115180</guid>
		<description><![CDATA[The parse() method parses the text from the beginning of the given string to produce a Number. The method may not use the entire text of the given string. Following is the general format of the method: 

public Number parse(String source) throws ParseExce [...]]]></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%2Fscjp4u.com%2Fwhat-is-the-parse-method-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fscjp4u.com%2Fwhat-is-the-parse-method-2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The parse() method parses the text from the beginning of the given string to produce a Number. The method may not use the entire text of the given string. Following is the general format of the method: </p>
<p><span class="stx">public Number parse(String source) throws ParseException </span></p>
<p>Here, source is a String whose beginning should be parsed and this method returns a Number parsed from the string. This method throws ParseException if the beginning of the specified string cannot be parsed.<br />
 Pass <a href="http://www.ucertify.com/exams/Oracle/CX310-065.html" >OCP Java SE 6 Programmer</a> exam</p>
<div style="background: silver;">
<ul>
<li> Pass <a href="http://www.ucertify.com/exams/Oracle/CX310-083.html">CX310-083 Certification</a></li>
<li>Download Free Practice For<a href="http://www.ucertify.com/download/CX310-083.html"> CX310-083 </a> Exam</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://scjp4u.com/what-is-the-parse-method-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is NullPointerException?</title>
		<link>http://scjp4u.com/what-is-nullpointerexception-2.html</link>
		<comments>http://scjp4u.com/what-is-nullpointerexception-2.html#comments</comments>
		<pubDate>Wed, 23 Mar 2011 10:50:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Certification]]></category>

		<guid isPermaLink="false">http://www.ucertify.com/article/index.html?id=115178</guid>
		<description><![CDATA[NullPointerException is thrown when an application attempts to use null in a case where an object is required. NullPointerException extends RuntimeException. This exception will be thrown when one of the following conditions is met: A null object of an in [...]]]></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%2Fscjp4u.com%2Fwhat-is-nullpointerexception-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fscjp4u.com%2Fwhat-is-nullpointerexception-2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>NullPointerException is thrown when an application attempts to use null in a case where an object is required. NullPointerException extends RuntimeException. This exception will be thrown when one of the following conditions is met:
<ol>
<li>A null object of an instance method has been called.</li>
<li> The field of a null object has been accessed or modified.</li>
<li>The length of null in an array has been taken.</li>
<li>The slots of null in an array have been accessed or modified.</li>
<li>Null is thrown as if it were a Throwable value. </li>
</ol>
<ul>
<li> Best exam simulation <a href="http://www.ucertify.com/exams/Oracle/CX310-065.html" >Oracle CX310-065</a> download free trial.</ul>
</p>
<div style="background: silver;">
<ul>
<li> Pass <a href="http://www.ucertify.com/exams/Oracle/CX310-110.html">CX310-110 Certification</a></li>
<li>Download Free Practice For<a href="http://www.ucertify.com/download/CX310-110.html"> CX310-110 </a> Exam</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://scjp4u.com/what-is-nullpointerexception-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the default and protected access modifiers?</title>
		<link>http://scjp4u.com/what-are-the-default-and-protected-access-modifiers.html</link>
		<comments>http://scjp4u.com/what-are-the-default-and-protected-access-modifiers.html#comments</comments>
		<pubDate>Tue, 22 Mar 2011 05:08:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Certification]]></category>

		<guid isPermaLink="false">http://www.ucertify.com/article/index.html?id=109355</guid>
		<description><![CDATA[The default and protected access modifiers are identical modifiers with only one difference. default: A default method or member can be accessed only by the class member that belongs to the same package. For example:package book;public class Outercla [...]]]></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%2Fscjp4u.com%2Fwhat-are-the-default-and-protected-access-modifiers.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fscjp4u.com%2Fwhat-are-the-default-and-protected-access-modifiers.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The default and protected access modifiers are identical modifiers with only one difference. </p>
<p><uc:hed>default:</uc:hed> A default method or member can be accessed only by the class member that belongs to the same package. For example:</p>
<p><uc:hed>package book;<br />
public class Outerclass<br />
&nbsp;{<br />
&nbsp; &nbsp;void test()    //default access<br />
&nbsp; &nbsp; &nbsp;{<br />
&nbsp; &nbsp; &nbsp; &nbsp;System.out.println(&#8220;Outer Class&#8221;);<br />
&nbsp; &nbsp; &nbsp;}<br />
&nbsp;}</uc:hed></p>
<p><uc:hed>package book1;<br />
import book.*;<br />
class Innerclass<br />
&nbsp;{<br />
&nbsp; &nbsp;static public void main(String args[])<br />
&nbsp; &nbsp; &nbsp;{<br />
&nbsp; &nbsp; &nbsp; &nbsp;Outerclass oc= new Outerclass();<br />
&nbsp; &nbsp; &nbsp; &nbsp;oc.test();  // compilation error!<br />
&nbsp; &nbsp; &nbsp;}<br />
&nbsp;}</uc:hed></p>
<p>In the above example, there are two packages, book and book1. The package book has a class Outerclass and a method test, which has a default access level. The package book1 has a class Innerclass in which it declares an object of Outerclass. However, when it uses the test() method of the Outerclass, which has a default access level, it will generate a compile-time error <uc:hed>No method matching test() found in class</uc:hed>.</p>
<p><uc:hed>protected:</uc:hed> If the protected modifier is used to define a member, any subclass of the class and its member can access the member through inheritance even if the subclass is in a different package. For example:</p>
<p><uc:hed>package book;<br />
public class read<br />
&nbsp;{<br />
&nbsp; &nbsp;protected int r1=10;<br />
&nbsp;}</p>
<p>package book1;<br />
import book.read;</p>
<p>class Doread extends read<br />
&nbsp;{<br />
&nbsp; &nbsp;public void test()<br />
&nbsp; &nbsp; &nbsp;{<br />
&nbsp; &nbsp; &nbsp; &nbsp;System.out.println(&#8220;The value of r1 is:&#8221; +r1);<br />
&nbsp; &nbsp; &nbsp;}<br />
&nbsp; &nbsp;}<br />
</uc:hed><br />
In the above example, there are two packages, book and book1. The package book has a class read and a protected variable r1. The package book1 has a class Doread, which extends the class read. The compiler will easily access the variable r1 because it inherits the class read.<br />
  Click here to download <a href="http://www.ucertify.com/exams/GIAC/GSSP-Java.html" >GSSP-Java</a> test study guide and practice question.<br />
 Download questions and guide  <a href="http://www.ucertify.com/exams/Oracle/CX310-019.html" >CX310-019</a> for exam.</p>
]]></content:encoded>
			<wfw:commentRss>http://scjp4u.com/what-are-the-default-and-protected-access-modifiers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the default and protected access modifiers?</title>
		<link>http://scjp4u.com/what-are-the-default-and-protected-access-modifiers-2.html</link>
		<comments>http://scjp4u.com/what-are-the-default-and-protected-access-modifiers-2.html#comments</comments>
		<pubDate>Tue, 22 Mar 2011 05:08:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Certification]]></category>

		<guid isPermaLink="false">http://www.ucertify.com/article/index.html?id=109355</guid>
		<description><![CDATA[The default and protected access modifiers are identical modifiers with only one difference. default: A default method or member can be accessed only by the class member that belongs to the same package. For example:package book;public class Outercla [...]]]></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%2Fscjp4u.com%2Fwhat-are-the-default-and-protected-access-modifiers-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fscjp4u.com%2Fwhat-are-the-default-and-protected-access-modifiers-2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The default and protected access modifiers are identical modifiers with only one difference. </p>
<p><uc:hed>default:</uc:hed> A default method or member can be accessed only by the class member that belongs to the same package. For example:</p>
<p><uc:hed>package book;<br />
public class Outerclass<br />
&nbsp;{<br />
&nbsp; &nbsp;void test()    //default access<br />
&nbsp; &nbsp; &nbsp;{<br />
&nbsp; &nbsp; &nbsp; &nbsp;System.out.println(&#8220;Outer Class&#8221;);<br />
&nbsp; &nbsp; &nbsp;}<br />
&nbsp;}</uc:hed></p>
<p><uc:hed>package book1;<br />
import book.*;<br />
class Innerclass<br />
&nbsp;{<br />
&nbsp; &nbsp;static public void main(String args[])<br />
&nbsp; &nbsp; &nbsp;{<br />
&nbsp; &nbsp; &nbsp; &nbsp;Outerclass oc= new Outerclass();<br />
&nbsp; &nbsp; &nbsp; &nbsp;oc.test();  // compilation error!<br />
&nbsp; &nbsp; &nbsp;}<br />
&nbsp;}</uc:hed></p>
<p>In the above example, there are two packages, book and book1. The package book has a class Outerclass and a method test, which has a default access level. The package book1 has a class Innerclass in which it declares an object of Outerclass. However, when it uses the test() method of the Outerclass, which has a default access level, it will generate a compile-time error <uc:hed>No method matching test() found in class</uc:hed>.</p>
<p><uc:hed>protected:</uc:hed> If the protected modifier is used to define a member, any subclass of the class and its member can access the member through inheritance even if the subclass is in a different package. For example:</p>
<p><uc:hed>package book;<br />
public class read<br />
&nbsp;{<br />
&nbsp; &nbsp;protected int r1=10;<br />
&nbsp;}</p>
<p>package book1;<br />
import book.read;</p>
<p>class Doread extends read<br />
&nbsp;{<br />
&nbsp; &nbsp;public void test()<br />
&nbsp; &nbsp; &nbsp;{<br />
&nbsp; &nbsp; &nbsp; &nbsp;System.out.println(&#8220;The value of r1 is:&#8221; +r1);<br />
&nbsp; &nbsp; &nbsp;}<br />
&nbsp; &nbsp;}<br />
</uc:hed><br />
In the above example, there are two packages, book and book1. The package book has a class read and a protected variable r1. The package book1 has a class Doread, which extends the class read. The compiler will easily access the variable r1 because it inherits the class read.<br />
  Best exam simulation <a href="http://www.ucertify.com/exams/GIAC/GSSP-Java.html" >free download GSSP-Java</a><br />
 Download free practice test for <a href="http://www.ucertify.com/exams/Oracle/CX310-019.html" >CX310-019  OCA Java SE 5/SE 6</a> exam.</p>
]]></content:encoded>
			<wfw:commentRss>http://scjp4u.com/what-are-the-default-and-protected-access-modifiers-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the HAVING clause?</title>
		<link>http://scjp4u.com/what-is-the-having-clause-3.html</link>
		<comments>http://scjp4u.com/what-is-the-having-clause-3.html#comments</comments>
		<pubDate>Sat, 12 Mar 2011 04:57:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Certification]]></category>

		<guid isPermaLink="false">http://www.ucertify.com/article/index.html?id=2474</guid>
		<description><![CDATA[The HAVING clause sets conditions for the GROUP BY clause in a SELECT statement. It restricts the groups of rows on the basis of aggregate information. Only groups of rows that satisfy the conditions specified in the HAVING clause are displayed.  [...]]]></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%2Fscjp4u.com%2Fwhat-is-the-having-clause-3.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fscjp4u.com%2Fwhat-is-the-having-clause-3.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The HAVING clause sets conditions for the <span class="kwd">GROUP BY</span> clause in a <span class="kwd">SELECT</span> statement. It restricts the groups of rows on the basis of aggregate information. Only groups of rows that satisfy the conditions specified in the HAVING clause are displayed.
<ul>
<li> Download free practice test for <a href="http://www.ucertify.com/exams/IBM/000-730.html" >000-730  IBM DB2 9 Family Fundamentals</a> exam.
<li> Become <a href="http://www.ucertify.com/exams/Microsoft/70-431.html" >Microsoft SQL Server 2005 Implementation</a> certified.
<li> Download free practice test for <a href="http://www.ucertify.com/exams/Microsoft/70-444.html" > SQL Server 2005 Optimizing and Maintaining</a> exam.</ul></p>
]]></content:encoded>
			<wfw:commentRss>http://scjp4u.com/what-is-the-having-clause-3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Â¿QuÃ© es un constructor?</title>
		<link>http://scjp4u.com/what-is-a-constructor-2.html</link>
		<comments>http://scjp4u.com/what-is-a-constructor-2.html#comments</comments>
		<pubDate>Thu, 03 Mar 2011 07:52:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Certification]]></category>

		<guid isPermaLink="false">http://www.ucertify.com/article/index.html?id=2238</guid>
		<description><![CDATA[Un constructor es un tipo especial de mÃ©todo. Se inicializa un objeto inmediatamente despuÃ©s de su creaciÃ³n. Tiene el mismo nombre que la clase en la que reside. Un constructor es llamado automÃ¡ticamente inmediatamente despuÃ©s se crea un objeto, antes de la [...] creador com nueva]]></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%2Fscjp4u.com%2Fwhat-is-a-constructor-2.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fscjp4u.com%2Fwhat-is-a-constructor-2.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<li>ConviÃ©rtete <a href="http://www.ucertify.com/exams/Microsoft/70-553-VB.html" >actualizaciÃ³n de Microsoft: Habilidades MCSD para MCPD Enterprise me VB.NET</a> certificado. </ul>
]]></content:encoded>
			<wfw:commentRss>http://scjp4u.com/what-is-a-constructor-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is an interface?</title>
		<link>http://scjp4u.com/what-is-an-interface.html</link>
		<comments>http://scjp4u.com/what-is-an-interface.html#comments</comments>
		<pubDate>Wed, 02 Mar 2011 12:44:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Certification]]></category>

		<guid isPermaLink="false">http://www.ucertify.com/article/index.html?id=1501145</guid>
		<description><![CDATA[An interface is a reference type that defines a contract. An interface body consists of method declarations and constants. All methods and constants in an interface are public. Interfaces are left completely unimplemented, i.e., no method in the interface [...]]]></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%2Fscjp4u.com%2Fwhat-is-an-interface.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fscjp4u.com%2Fwhat-is-an-interface.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p> <uc:hed>extends Super_interfaces</uc:hed>: An interface can extend other interfaces in the same way as a class extends another class. The only difference between these two is that whereas a class is allowed to extend only one class, an interface can extend any number of interfaces. The extends keyword in an interface declaration tells the compiler that the interface extends the list of interfaces that follows the extends keyword.</li>
</ul>
<p><uc:hed>The interface body</uc:hed></p>
<p>The interface body contains method declarations for all the methods included in the interface. A method declared within an interface does not have a body, i.e., the method declaration ends with a semicolon. This is because an interface does not provide implementations for the methods declared within it. Apart from method declarations, an interface contains constant declarations. </p>
<p>All the constants defined in an interface are by default <span class="kwd">static</span> and <span class="kwd">final</span>. Therefore, there is no need to explicitly use these keywords to declare variables inside the interface body. All methods and variables in an interface are implicitly <span class="kwd">public</span> if the interface is declared as public. It is also not necessary to declare the methods as <span class="kwd">abstract</span> as well. The following example demonstrates how to define an interface:</p>
<p><span class="stx">public interface MyInterface{<br />
   void method1();<br />
   int method2(int k);<br />
   int x = 1;<br />
   int y = 2; Click here to get free <a href="http://www.ucertify.com/exams/Microsoft/70-568-CSHARP.html" >70-568-CSHARP UPGRADE: MCPD C#.NET 3.5 Enterprise Application Developer Skills 1</a> study guide.<br />
}</span> Get certified in first attempt download <a href="http://www.ucertify.com/exams/Oracle/CX310-019.html" >CX310-019 study guide</a><br />
 free study material for  <a href="http://www.ucertify.com/exams/Oracle/CX310-055.html" >CX310-055  OCP  Java SE 5 Programmer</a> exam.</p>
]]></content:encoded>
			<wfw:commentRss>http://scjp4u.com/what-is-an-interface.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

