<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>AARON. LI.  RUNS..............</title>
	<atom:link href="http://aaronliruns.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://aaronliruns.wordpress.com</link>
	<description>Getting out of the sucky life.</description>
	<lastBuildDate>Wed, 11 Jan 2012 14:37:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='aaronliruns.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>AARON. LI.  RUNS..............</title>
		<link>http://aaronliruns.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://aaronliruns.wordpress.com/osd.xml" title="AARON. LI.  RUNS.............." />
	<atom:link rel='hub' href='http://aaronliruns.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Good summary of cloning objects</title>
		<link>http://aaronliruns.wordpress.com/2012/01/11/good-summary-of-cloning-objects/</link>
		<comments>http://aaronliruns.wordpress.com/2012/01/11/good-summary-of-cloning-objects/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 14:37:20 +0000</pubDate>
		<dc:creator>aaronliruns</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://aaronliruns.wordpress.com/?p=77</guid>
		<description><![CDATA[http://stackoverflow.com/questions/2156120/java-recommended-solution-for-deep-cloning-copying-an-instance<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=77&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://stackoverflow.com/questions/2156120/java-recommended-solution-for-deep-cloning-copying-an-instance">http://stackoverflow.com/questions/2156120/java-recommended-solution-for-deep-cloning-copying-an-instance</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aaronliruns.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aaronliruns.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aaronliruns.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aaronliruns.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aaronliruns.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aaronliruns.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aaronliruns.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aaronliruns.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aaronliruns.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aaronliruns.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aaronliruns.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aaronliruns.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aaronliruns.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aaronliruns.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=77&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aaronliruns.wordpress.com/2012/01/11/good-summary-of-cloning-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6240d0f62b08e4021b1b73218179a86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aaronliruns</media:title>
		</media:content>
	</item>
		<item>
		<title>Java primitive wrappers are immutable &#8230;</title>
		<link>http://aaronliruns.wordpress.com/2012/01/11/java-primitive-wrappers-are-immutable/</link>
		<comments>http://aaronliruns.wordpress.com/2012/01/11/java-primitive-wrappers-are-immutable/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 13:51:47 +0000</pubDate>
		<dc:creator>aaronliruns</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://aaronliruns.wordpress.com/?p=74</guid>
		<description><![CDATA[The IntegerString, Float, Double, Byte, Long, Short, Boolean, and Character classes are all examples of an immutable class. By definition, you may not alter the value of an immutable object after its construction.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=74&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The IntegerString, Float, Double, Byte, Long, Short, Boolean, and Character classes are all examples of an immutable class. By definition, you may not alter the value of an immutable object after its construction.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aaronliruns.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aaronliruns.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aaronliruns.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aaronliruns.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aaronliruns.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aaronliruns.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aaronliruns.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aaronliruns.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aaronliruns.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aaronliruns.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aaronliruns.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aaronliruns.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aaronliruns.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aaronliruns.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=74&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aaronliruns.wordpress.com/2012/01/11/java-primitive-wrappers-are-immutable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6240d0f62b08e4021b1b73218179a86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aaronliruns</media:title>
		</media:content>
	</item>
		<item>
		<title>HashMap deep copy</title>
		<link>http://aaronliruns.wordpress.com/2012/01/11/hashmap-deep-copy/</link>
		<comments>http://aaronliruns.wordpress.com/2012/01/11/hashmap-deep-copy/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 13:44:10 +0000</pubDate>
		<dc:creator>aaronliruns</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://aaronliruns.wordpress.com/?p=70</guid>
		<description><![CDATA[Iterate through the source hashmap, clone the key and value respectively to the target hashmap. Why deep cloning is important? It comes in handy when you are implementing immutable class.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=70&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Iterate through the source hashmap, clone the key and value respectively to the target hashmap.</p>
<p>Why deep cloning is important? It comes in handy when you are implementing immutable class.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aaronliruns.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aaronliruns.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aaronliruns.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aaronliruns.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aaronliruns.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aaronliruns.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aaronliruns.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aaronliruns.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aaronliruns.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aaronliruns.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aaronliruns.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aaronliruns.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aaronliruns.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aaronliruns.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=70&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aaronliruns.wordpress.com/2012/01/11/hashmap-deep-copy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6240d0f62b08e4021b1b73218179a86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aaronliruns</media:title>
		</media:content>
	</item>
		<item>
		<title>ArrayList shallow copy vs deep copy</title>
		<link>http://aaronliruns.wordpress.com/2012/01/11/arraylist-shallow-copy-vs-deep-copy/</link>
		<comments>http://aaronliruns.wordpress.com/2012/01/11/arraylist-shallow-copy-vs-deep-copy/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 13:37:54 +0000</pubDate>
		<dc:creator>aaronliruns</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://aaronliruns.wordpress.com/?p=68</guid>
		<description><![CDATA[import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * */ /** * @author Aaron Li * * Run this sample to explain list shallow copy vs deep copy to yourself * */ public class CollectionClone { static class O implements Cloneable { private String s; public String getS() { return s; } public void setS(String s) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=68&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>import java.util.ArrayList;<br />
import java.util.Collections;<br />
import java.util.List;</p>
<p>/**<br />
*<br />
*/</p>
<p>/**<br />
* @author Aaron Li<br />
*<br />
* Run this sample to explain list shallow copy vs deep copy to yourself<br />
*<br />
*/<br />
public class CollectionClone {</p>
<p>static class O implements Cloneable {<br />
private String s;</p>
<p>public String getS() {<br />
return s;<br />
}</p>
<p>public void setS(String s) {<br />
this.s = s;<br />
}</p>
<p>public String toString() {<br />
return this.s;<br />
}</p>
<p>@Override<br />
protected Object clone() throws CloneNotSupportedException {<br />
// TODO Auto-generated method stub<br />
return super.clone();<br />
}</p>
<p>}</p>
<p>/**<br />
* @param args<br />
*/<br />
public static void main(String[] args) throws Exception {<br />
List&lt;O&gt; l1 = new ArrayList&lt;O&gt;();<br />
O o1 = new O();<br />
o1.setS(&#8220;Hello&#8221;);<br />
l1.add(o1);</p>
<p>List&lt;O&gt; l2 = new ArrayList&lt;O&gt;(l1);<br />
List&lt;O&gt; l3 = new ArrayList&lt;O&gt;();<br />
l3.add(new O());<br />
Collections.copy(l3, l1);<br />
List&lt;O&gt; l4 = new ArrayList&lt;O&gt;();<br />
l4.add((O)o1.clone());</p>
<p>o1.setS(&#8220;World&#8221;);</p>
<p>//////////////////////////////////////////////////////////////////////<br />
//////////////// Shallow Copy<br />
System.out.println(&#8220;l1&#8243; + l1);</p>
<p>System.out.println(&#8220;l2&#8243; + l2);</p>
<p>System.out.println(&#8220;l3&#8243; + l3);</p>
<p>/////////////////////////////////////////////////////////////////////<br />
//////////////// Deep Copy<br />
System.out.println(&#8220;l4&#8243; + l4);</p>
<p>}</p>
<p>}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aaronliruns.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aaronliruns.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aaronliruns.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aaronliruns.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aaronliruns.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aaronliruns.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aaronliruns.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aaronliruns.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aaronliruns.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aaronliruns.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aaronliruns.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aaronliruns.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aaronliruns.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aaronliruns.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=68&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aaronliruns.wordpress.com/2012/01/11/arraylist-shallow-copy-vs-deep-copy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6240d0f62b08e4021b1b73218179a86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aaronliruns</media:title>
		</media:content>
	</item>
		<item>
		<title>My Favorite Hotspot JVM Flags</title>
		<link>http://aaronliruns.wordpress.com/2011/12/31/my-favorite-hotspot-jvm-flags/</link>
		<comments>http://aaronliruns.wordpress.com/2011/12/31/my-favorite-hotspot-jvm-flags/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 10:06:09 +0000</pubDate>
		<dc:creator>aaronliruns</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://aaronliruns.wordpress.com/?p=65</guid>
		<description><![CDATA[I am using this blog as my personal knowledge base. Credits go to author of the posting and thanks for sharing with us - http://blog.headius.com/2009/01/my-favorite-hotspot-jvm-flags.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=65&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am using this blog as my personal knowledge base.</p>
<p>Credits go to author of the posting and thanks for sharing with us -</p>
<p><a href="http://blog.headius.com/2009/01/my-favorite-hotspot-jvm-flags.html">http://blog.headius.com/2009/01/my-favorite-hotspot-jvm-flags.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aaronliruns.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aaronliruns.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aaronliruns.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aaronliruns.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aaronliruns.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aaronliruns.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aaronliruns.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aaronliruns.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aaronliruns.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aaronliruns.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aaronliruns.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aaronliruns.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aaronliruns.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aaronliruns.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=65&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aaronliruns.wordpress.com/2011/12/31/my-favorite-hotspot-jvm-flags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6240d0f62b08e4021b1b73218179a86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aaronliruns</media:title>
		</media:content>
	</item>
		<item>
		<title>Checked Vs Unchecked Exceptions</title>
		<link>http://aaronliruns.wordpress.com/2011/03/05/checked-vs-unchecked-exceptions/</link>
		<comments>http://aaronliruns.wordpress.com/2011/03/05/checked-vs-unchecked-exceptions/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 07:51:50 +0000</pubDate>
		<dc:creator>aaronliruns</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Java Exception]]></category>

		<guid isPermaLink="false">http://aaronliruns.wordpress.com/?p=62</guid>
		<description><![CDATA[In Java, there are 2 kinds of Exception: Unchecked Exceptions which indicate some sort of programming error on the part of developer. Unchecked Exceptions are usually subclasses of RuntimeException class. Examples include: &#8212; NullPointerException (which is usually thrown when method is invoked on a null object) &#8212; DivideByZeroException (thrown when divide by zero happens in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=62&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Java, there are 2 kinds of Exception:</p>
<p>Unchecked Exceptions which indicate some sort of programming error on the part of developer. Unchecked Exceptions are usually subclasses of RuntimeException class. Examples include:<br />
 &#8212; NullPointerException (which is usually thrown when method is              invoked on a null object)<br />
 &#8212; DivideByZeroException (thrown when divide by zero happens in        your code)<br />
 &#8212; IllegalArgumentException (usually thrown when invalid argument        is passed to a method)<br />
 &#8212; ArrayIndexOutOfBoundsException (thrown when you try to access         array index beyond the memory allocated to it)<br />
 &#8212; ArithmeticException<br />
 &#8212; RuntimeException<br />
If your methods throw an unchecked exception, then your method need not specify it as a part of its API i.e no need to write all the exceptions it throws using &#8220;throws&#8221; clause.</p>
<p>Checked Exceptions on the other hand, specifies conditions that are not due to human errors but due to conditions that are not in programmer&#8217;s control. These include conditions such as database errors, network failures, file not found when searching or performing some operation on it. Examples include:<br />
 &#8212; FileNotFoundException<br />
 &#8212; SQLException<br />
 &#8212; PersistenceException<br />
On the other hand, if your code throws any checked conditions, then either you must handle it or specify it using &#8220;throws&#8221; clause else your program will give compile-time error. </p>
<p>Checked Vs Unchecked<br />
Use Checked Exception in your code when you Client code (code that calls your code) is capable of dealing with the Exception and have ample knowledge why that Exception occurred in the first place and how to do away with it.<br />
Otherwise, it is always preferable to use Unchecked Exceptions since then the Client code is not forced to handle it and can choose to ignore it. Though that would not solve the problem and the exception would travel high up in hierarchy of function calls and perhaps finally encountered by the JVM, but at least the Client code is saved from the hassle of dealing with Exceptions that they don&#8217;t know about it.<br />
Let&#8217;s take an example. Suppose we have a method throwing an SQLException:<br />
The client code would never come to know that why this SQLException occurred, as it has no knowledge of underlying business logic and internal database design. Thus client is unable to handle the exception, so its always better to not force a client to handle an exception he do not know about.</p>
<p>Sourced from &#8211; http://techno-cratic.blogspot.com/2009/01/checked-vs-unchecked-exceptions.html</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aaronliruns.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aaronliruns.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aaronliruns.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aaronliruns.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aaronliruns.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aaronliruns.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aaronliruns.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aaronliruns.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aaronliruns.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aaronliruns.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aaronliruns.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aaronliruns.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aaronliruns.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aaronliruns.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=62&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aaronliruns.wordpress.com/2011/03/05/checked-vs-unchecked-exceptions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6240d0f62b08e4021b1b73218179a86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aaronliruns</media:title>
		</media:content>
	</item>
		<item>
		<title>These are the men who have the biggest thing in the world.</title>
		<link>http://aaronliruns.wordpress.com/2009/02/16/these-are-the-men-who-have-the-biggest-thing-in-the-world/</link>
		<comments>http://aaronliruns.wordpress.com/2009/02/16/these-are-the-men-who-have-the-biggest-thing-in-the-world/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 13:15:45 +0000</pubDate>
		<dc:creator>aaronliruns</dc:creator>
				<category><![CDATA[X-Files]]></category>

		<guid isPermaLink="false">http://aaronliruns.wordpress.com/?p=52</guid>
		<description><![CDATA[Not sure their women are suffering or enjoying &#8230;.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=52&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Not sure their women are suffering or enjoying &#8230;.</p>

<a href='http://aaronliruns.wordpress.com/2009/02/16/these-are-the-men-who-have-the-biggest-thing-in-the-world/1a01833q1182216bd43c/' title='1a01833q1182216bd43c'><img data-attachment-id='53' data-orig-size='500,1000' data-liked='0'width="75" height="150" src="http://aaronliruns.files.wordpress.com/2009/02/1a01833q1182216bd43c.jpg?w=75&#038;h=150" class="attachment-thumbnail" alt="1a01833q1182216bd43c" title="1a01833q1182216bd43c" /></a>
<a href='http://aaronliruns.wordpress.com/2009/02/16/these-are-the-men-who-have-the-biggest-thing-in-the-world/1c01a3cq11783410c80b/' title='1c01a3cq11783410c80b'><img data-attachment-id='54' data-orig-size='500,900' data-liked='0'width="83" height="150" src="http://aaronliruns.files.wordpress.com/2009/02/1c01a3cq11783410c80b.jpg?w=83&#038;h=150" class="attachment-thumbnail" alt="1c01a3cq11783410c80b" title="1c01a3cq11783410c80b" /></a>
<a href='http://aaronliruns.wordpress.com/2009/02/16/these-are-the-men-who-have-the-biggest-thing-in-the-world/1d02c5eq1172ad76e0f0/' title='1d02c5eq1172ad76e0f0'><img data-attachment-id='55' data-orig-size='500,1167' data-liked='0'width="64" height="150" src="http://aaronliruns.files.wordpress.com/2009/02/1d02c5eq1172ad76e0f0.jpg?w=64&#038;h=150" class="attachment-thumbnail" alt="1d02c5eq1172ad76e0f0" title="1d02c5eq1172ad76e0f0" /></a>
<a href='http://aaronliruns.wordpress.com/2009/02/16/these-are-the-men-who-have-the-biggest-thing-in-the-world/110283eq117e0efe5150/' title='110283eq117e0efe5150'><img data-attachment-id='56' data-orig-size='500,917' data-liked='0'width="81" height="150" src="http://aaronliruns.files.wordpress.com/2009/02/110283eq117e0efe5150.jpg?w=81&#038;h=150" class="attachment-thumbnail" alt="110283eq117e0efe5150" title="110283eq117e0efe5150" /></a>

<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aaronliruns.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aaronliruns.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aaronliruns.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aaronliruns.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aaronliruns.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aaronliruns.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aaronliruns.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aaronliruns.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aaronliruns.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aaronliruns.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aaronliruns.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aaronliruns.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aaronliruns.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aaronliruns.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=52&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aaronliruns.wordpress.com/2009/02/16/these-are-the-men-who-have-the-biggest-thing-in-the-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6240d0f62b08e4021b1b73218179a86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aaronliruns</media:title>
		</media:content>

		<media:content url="http://aaronliruns.files.wordpress.com/2009/02/1a01833q1182216bd43c.jpg?w=75" medium="image">
			<media:title type="html">1a01833q1182216bd43c</media:title>
		</media:content>

		<media:content url="http://aaronliruns.files.wordpress.com/2009/02/1c01a3cq11783410c80b.jpg?w=83" medium="image">
			<media:title type="html">1c01a3cq11783410c80b</media:title>
		</media:content>

		<media:content url="http://aaronliruns.files.wordpress.com/2009/02/1d02c5eq1172ad76e0f0.jpg?w=64" medium="image">
			<media:title type="html">1d02c5eq1172ad76e0f0</media:title>
		</media:content>

		<media:content url="http://aaronliruns.files.wordpress.com/2009/02/110283eq117e0efe5150.jpg?w=81" medium="image">
			<media:title type="html">110283eq117e0efe5150</media:title>
		</media:content>
	</item>
		<item>
		<title>No excuse to give up your guitar practicing&#8230;</title>
		<link>http://aaronliruns.wordpress.com/2009/02/04/no-excuse-to-give-up-your-guitar-practicing/</link>
		<comments>http://aaronliruns.wordpress.com/2009/02/04/no-excuse-to-give-up-your-guitar-practicing/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 13:10:20 +0000</pubDate>
		<dc:creator>aaronliruns</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aaronliruns.wordpress.com/?p=50</guid>
		<description><![CDATA[I am so getting one My landlady will not kick my ass because of disturbing my neighbour.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=50&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am so getting one</p>
<p>My landlady will not kick my ass because of disturbing my neighbour.</p>
<span style="text-align:center; display: block;"><a href="http://aaronliruns.wordpress.com/2009/02/04/no-excuse-to-give-up-your-guitar-practicing/"><img src="http://img.youtube.com/vi/FWF79H3INQU/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aaronliruns.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aaronliruns.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aaronliruns.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aaronliruns.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aaronliruns.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aaronliruns.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aaronliruns.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aaronliruns.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aaronliruns.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aaronliruns.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aaronliruns.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aaronliruns.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aaronliruns.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aaronliruns.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=50&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aaronliruns.wordpress.com/2009/02/04/no-excuse-to-give-up-your-guitar-practicing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6240d0f62b08e4021b1b73218179a86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aaronliruns</media:title>
		</media:content>
	</item>
		<item>
		<title>Useful links &#8211; Chinese stock market</title>
		<link>http://aaronliruns.wordpress.com/2008/12/22/useful-links-chinese-stock-market/</link>
		<comments>http://aaronliruns.wordpress.com/2008/12/22/useful-links-chinese-stock-market/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 13:43:03 +0000</pubDate>
		<dc:creator>aaronliruns</dc:creator>
				<category><![CDATA[Finance&Investment]]></category>

		<guid isPermaLink="false">http://aaronliruns.wordpress.com/?p=46</guid>
		<description><![CDATA[Reuters &#8211; (where you can get BETA of each of the stocks) http://cn.reuters.com/investing/quotes/quote?symbol=&#60;symbol.market&#62; e.g. 000402.SZ  &#124; 601398.SS Financial Statements of Chinese firms http://investing.businessweek.com/businessweek/research/stocks/financials/financials.asp?symbol=&#60;symbol.market&#62;&#038;dataset=cashFlow&#038;period=Q&#038;currency=native<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=46&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Reuters &#8211; (where you can get BETA of each of the stocks)</strong></p>
<p>http://cn.reuters.com/investing/quotes/quote?symbol=&lt;symbol.market&gt;</p>
<p>e.g. 000402.SZ  | 601398.SS</p>
<p><strong>Financial Statements of Chinese firms</strong></p>
<p>http://investing.businessweek.com/businessweek/research/stocks/financials/financials.asp?symbol=&lt;symbol.market&gt;&#038;dataset=cashFlow&#038;period=Q&#038;currency=native</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aaronliruns.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aaronliruns.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aaronliruns.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aaronliruns.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aaronliruns.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aaronliruns.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aaronliruns.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aaronliruns.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aaronliruns.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aaronliruns.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aaronliruns.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aaronliruns.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aaronliruns.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aaronliruns.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=46&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aaronliruns.wordpress.com/2008/12/22/useful-links-chinese-stock-market/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6240d0f62b08e4021b1b73218179a86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aaronliruns</media:title>
		</media:content>
	</item>
		<item>
		<title>Captured &#8211; Ghost passes through wall in Singapore</title>
		<link>http://aaronliruns.wordpress.com/2008/12/22/captured-ghost-passes-through-wall-in-singapore/</link>
		<comments>http://aaronliruns.wordpress.com/2008/12/22/captured-ghost-passes-through-wall-in-singapore/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 13:16:02 +0000</pubDate>
		<dc:creator>aaronliruns</dc:creator>
				<category><![CDATA[X-Files]]></category>

		<guid isPermaLink="false">http://aaronliruns.wordpress.com/?p=40</guid>
		<description><![CDATA[It said that this happened in 2005 in Singapore.  While these two guys were consentrating on watching their TV, the 3rd guy sitting behind them playing around his new mobile phone with the camcorder functionality. All of the suddend, a ghost-like thing came into the scene, passed by the guys and ran into the wall [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=40&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It said that this happened in 2005 in Singapore.  While these two guys were consentrating on watching their TV, the 3rd guy sitting behind them playing around his new mobile phone with the camcorder functionality. All of the suddend, a ghost-like thing came into the scene, passed by the guys and ran into the wall right behind the TV they were staring at.   </p>
<span style="text-align:center; display: block;"><a href="http://aaronliruns.wordpress.com/2008/12/22/captured-ghost-passes-through-wall-in-singapore/"><img src="http://img.youtube.com/vi/L9rfbvY3XAU/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aaronliruns.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aaronliruns.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aaronliruns.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aaronliruns.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aaronliruns.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aaronliruns.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aaronliruns.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aaronliruns.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aaronliruns.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aaronliruns.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aaronliruns.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aaronliruns.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aaronliruns.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aaronliruns.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aaronliruns.wordpress.com&amp;blog=5549233&amp;post=40&amp;subd=aaronliruns&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aaronliruns.wordpress.com/2008/12/22/captured-ghost-passes-through-wall-in-singapore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a6240d0f62b08e4021b1b73218179a86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aaronliruns</media:title>
		</media:content>
	</item>
	</channel>
</rss>
