<?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; object output stream</title>
	<atom:link href="http://www.scjp-certification.com/tag/object-output-stream/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 output of the following code?</title>
		<link>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-code.html</link>
		<comments>http://www.scjp-certification.com/what-will-be-the-output-of-the-following-code.html#comments</comments>
		<pubDate>Mon, 05 Oct 2009 12:00:31 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[file input stream]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[object output stream]]></category>
		<category><![CDATA[serializable]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=275</guid>
		<description><![CDATA[import java.io.*; class ABC implements Serializable { } public class SerializeABC { public static void main(String[] args) { ABC ab...]]></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-output-of-the-following-code.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-will-be-the-output-of-the-following-code.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>import java.io.*;<br />
class ABC implements Serializable { }<br />
 public class SerializeABC {<br />
  public static void main(String[] args) {<br />
    ABC ab = new ABC();<br />
     try {<br />
       FileOutputStream fs = newFileOutputStream(&#8220;testSer.ser&#8221;);<br />
       ObjectOutputStream os = new ObjectOutputStream(fs);<br />
       os.writeObject(ab);<br />
       os.close();<br />
       } catch (Exception e) { e.printStackTrace(); }<br />
     try {<br />
       FileInputStream fis = new FileInputStream(&#8220;testSer.ser&#8221;);<br />
       ObjectInputStream ois = new ObjectInputStream(fis);<br />
       ab = (ABC) ois.readObject();<br />
       ois.close();<br />
      } catch (Exception e) { e.printStackTrace(); }<br />
    }<br />
   } </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-output-of-the-following-code.html&amp;title=What%20will%20be%20the%20output%20of%20the%20following%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-output-of-the-following-code.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the methods of ObjectOutputStream?</title>
		<link>http://www.scjp-certification.com/what-are-the-methods-of-objectoutputstream.html</link>
		<comments>http://www.scjp-certification.com/what-are-the-methods-of-objectoutputstream.html#comments</comments>
		<pubDate>Sat, 03 Oct 2009 12:02:13 +0000</pubDate>
		<dc:creator>Daisy Williams</dc:creator>
				<category><![CDATA[Java Facts]]></category>
		<category><![CDATA[close()]]></category>
		<category><![CDATA[object output stream]]></category>
		<category><![CDATA[write()]]></category>
		<category><![CDATA[writeObject]]></category>

		<guid isPermaLink="false">http://www.scjp-certification.com/?p=273</guid>
		<description><![CDATA[The following table depicts the commonly used methods defined by ObjectOutputStream: Method NameDescription void close()Closes the invoking stream with an...]]></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-methods-of-objectoutputstream.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scjp-certification.com%2Fwhat-are-the-methods-of-objectoutputstream.html&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The following table depicts the commonly used methods defined by ObjectOutputStream:</p>
<p><TABLE BORDER=1><TR><TH>Method Name</TH><TH>Description</TH></TR> <TR><TD>void close()</TD><TD>Closes the invoking stream with an IOException. </TD></TR><TR><TD>void flush()</TD><TD>Flushes the output buffers.</TD> </TR><TR><TD>void write(int b)</TD><TD>Writes a single byte to the invoking stream. </TD></TR> <TR><TD>void writeChar(int c)</TD><TD>Writes a char to the invoking stream.</TD></TR><TR><TD>void write(byte buffer[])</TD><TD>Writes an array of byte to the invoking stream.</TD> </TR> <TR><TD>final void writeObject(Object o) </TD> <TD>Writes an object to the invoking stream.</TD></TR> <TR><TD>void writeBoolean(boolean b)</TD><TD>Writes a boolean to the invoking stream.</TD> </TR><TR><TD>void write(byte buffer[], int offset, int numBytes)</TD><TD>Writes a subrange of numBytes bytes from the array buffer.</TD></TR></TABLE>  </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-are-the-methods-of-objectoutputstream.html&amp;title=What%20are%20the%20methods%20of%20ObjectOutputStream%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-methods-of-objectoutputstream.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

