<?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; interface</title>
	<atom:link href="http://www.scjp-certification.com/tag/interface/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 is the Externalizable interface?</title>
		<link>http://www.scjp-certification.com/what-is-the-externalizable-interface.html</link>
		<comments>http://www.scjp-certification.com/what-is-the-externalizable-interface.html#comments</comments>
		<pubDate>Wed, 21 Oct 2009 11:36:29 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[externalizable]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[readExternal]]></category>
		<category><![CDATA[write()]]></category>
		<category><![CDATA[writInternal]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=303</guid>
		<description><![CDATA[The Externalizable interface is used to provide a complete control over the serialization and deserialization processes.This interface has the following...]]></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-externalizable-interface.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-is-the-externalizable-interface.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The Externalizable interface is used to provide a complete control over the serialization and deserialization processes.This interface has the following two methods:
<ul>
<li><uc:stx>public void writeExternal(ObjectOutput objout)</uc:stx>: This method is used to save the contents of an object by calling the methods of the DataOutput interface for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, arrays, etc.</li>
<li><uc:stx>public void readExternal(ObjectInput objin)</uc:stx>: This method is used to restore the contents of an object that was saved using the writeExternal() method. It calls the methods of the DataInput interface for primitive types and the readObject() method for objects, strings, arrays, etc. </li>
</ul>
<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-externalizable-interface.html&amp;title=What%20is%20the%20Externalizable%20interface%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-externalizable-interface.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between abstract classes and interfaces</title>
		<link>http://www.scjp-certification.com/difference-between-abstract-classes-and-interfaces.html</link>
		<comments>http://www.scjp-certification.com/difference-between-abstract-classes-and-interfaces.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 12:19:54 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[abstract calass]]></category>
		<category><![CDATA[differnece between anstract class and interface]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=84</guid>
		<description><![CDATA[Abstract class: In java, an abstract class is a class that is partially implemented. It provides design convenience. An abstract...]]></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%2Fdifference-between-abstract-classes-and-interfaces.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fdifference-between-abstract-classes-and-interfaces.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Abstract class:</strong> In java, an <a href="http://java.sun.com/docs/books/tutorial/java/IandI/abstract.html">abstract class</a> is a class that is partially implemented. It provides design convenience. An abstract class is made up of one or more abstract methods that are declared but left unimplemented. </p>
<p><strong>Interface:</strong> 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 is implemented. All methods of an interface are abstract and the method body is absent. </p>
<p>The following table depicts the difference between abstract class and interfaces: </p>
<table BORDER=1 cellpadding='2' cellspacing='2' BORDERCOLOR=maroon>
<tr>
<th ALIGN="center">Abstract class</th>
<th ALIGN="center">Interface</th>
</tr>
<tr>
<td>It is declared with the keyword abstract.</td>
<td>It is declared with the keyword interface.</td>
</tr>
<tr>
<td>It can contain non-abstract methods.</td>
<td>By default all the methods of an interface are abstract.</td>
</tr>
<tr>
<td>An abstract class can contain private methods.</td>
<td>An interface cannot contain private methods.</td>
</tr>
<tr>
<td>It can contain instance variables and final varibales. </td>
<td>It contains final varibales only.</td>
</tr>
</table>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.scjp-certification.com%2Fdifference-between-abstract-classes-and-interfaces.html&amp;title=Difference%20between%20abstract%20classes%20and%20interfaces"><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/difference-between-abstract-classes-and-interfaces.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

