<?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>the rider chronicles &#187; Java</title>
	<atom:link href="http://bearrider.wordpress.com/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://bearrider.wordpress.com</link>
	<description>The Lord is my shepherd; I shall not want - PSAL XXIII</description>
	<lastBuildDate>Sat, 18 Jul 2009 13:21:27 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='bearrider.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e3919f87d308c627b4c92fb8ebaae73b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>the rider chronicles &#187; Java</title>
		<link>http://bearrider.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bearrider.wordpress.com/osd.xml" title="the rider chronicles" />
		<item>
		<title>To have Eclipse use a particular Java VM</title>
		<link>http://bearrider.wordpress.com/2009/02/10/to-have-eclipse-use-a-particular-java-vm/</link>
		<comments>http://bearrider.wordpress.com/2009/02/10/to-have-eclipse-use-a-particular-java-vm/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 06:44:10 +0000</pubDate>
		<dc:creator>bearrider</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://bearrider.wordpress.com/2009/02/10/19/</guid>
		<description><![CDATA[To have Eclipse use a particular Java VM :
Edit the eclipse.ini file and add the vm argument below the line org.eclipse.platform
-vm /absolute/path/to/your/java/executable
I&#8217;ve found this particularly useful on Windows when I&#8217;ve installed and removed various versions of JDK and eclipse appears completely lost and confused.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bearrider.wordpress.com&blog=1328458&post=19&subd=bearrider&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><blockquote><p>To have Eclipse use a particular Java VM :</p>
<p>Edit the eclipse.ini file and add the vm argument below the line org.eclipse.platform</p>
<p>-vm /absolute/path/to/your/java/executable</p>
<p>I&#8217;ve found this particularly useful on Windows when I&#8217;ve installed and removed various versions of JDK and eclipse appears completely lost and confused.</p></blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bearrider.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bearrider.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bearrider.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bearrider.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bearrider.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bearrider.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bearrider.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bearrider.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bearrider.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bearrider.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bearrider.wordpress.com&blog=1328458&post=19&subd=bearrider&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bearrider.wordpress.com/2009/02/10/to-have-eclipse-use-a-particular-java-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be0d36abe3ea4da3be771168815cbeb1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bearrider</media:title>
		</media:content>
	</item>
		<item>
		<title>versus</title>
		<link>http://bearrider.wordpress.com/2007/08/30/versus/</link>
		<comments>http://bearrider.wordpress.com/2007/08/30/versus/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 06:56:20 +0000</pubDate>
		<dc:creator>bearrider</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://bearrider.wordpress.com/2007/08/30/versus/</guid>
		<description><![CDATA[Run time polymorphism vs. Compile time polymorphism
Overriding is polymorphism. Obvious enough. But how the heck is Overloading polymorphism? Which Overloaded method is called isn&#8217;t decided at runtime, that is already determined at compile time.  So is Overloading polymorphism simply because, although the signatures vary all over the place, the method name is the same?
Abstract classes [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bearrider.wordpress.com&blog=1328458&post=11&subd=bearrider&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h4><a title="rtct" name="rtct"></a><strong>Run time polymorphism vs. Compile time polymorphism</strong></h4>
<p>Overriding is polymorphism. Obvious enough. But how the heck is Overloading polymorphism? Which Overloaded method is called isn&#8217;t decided at runtime, that is already determined at compile time.  So is Overloading polymorphism simply because, although the signatures vary all over the place, the method name is the same?</p>
<h4><strong>Abstract classes vs. Interfaces:</strong></h4>
<p>When would one prefer to use an interface/abstract class?</p>
<h5>Abstract class:</h5>
<ol>
<li class="MsoNormal">When the focus is on something an entity <em>HAS</em></li>
<li class="MsoNormal">When      an attribute is a common factor. E.g.: A Unicorn, a Cow, and a Triceratops      are all of type Animal. They all also share the attribute Horns. A good      place for inheriting from an abstract class.<span> </span></li>
</ol>
<h5>Interface:</h5>
<p class="MsoNormal">Of course, an interface is just a perfectly abstract class.</p>
<ol>
<li class="MsoNormal">When      the focus is on something an entity <em>DOES</em></li>
<li class="MsoNormal">When      the only common factor is behaviour and not attributes. E.g.: A bird      flies. Ditto a Plane, Time and $hit. Nevertheless, Bird, Plane, Crap and      Time classes can hardly inherit from a common abstract parent. However      they can all implement the Flyable interface.</li>
</ol>
<h4><strong>Procedural vs. OO programming:</strong></h4>
<h5>Procedural:</h5>
<ol>
<li class="MsoNormal">Separation      of data from operations. The idea is that data is passed with the      expectation that the program at the receiving end knows what to do with      the data.</li>
<li class="MsoNormal">Code      is placed in procedures that manipulate the data. Procedures are mostly      black boxes &#8211; input goes in, out comes output.</li>
<li class="MsoNormal">Procedural      logic is splattered with if-then-else conditional statements.</li>
</ol>
<h5>Object oriented:</h5>
<ol>
<li class="MsoNormal">Encapsulation.      Objects have attributes and behaviour.</li>
<li class="MsoNormal">Object      has behaviour and thus knows what to do with its data.</li>
<li class="MsoNormal">OO      depends more on polymorphism than on conditional statements. (If your OO      principles aren’t good, you’ll end up writing OO code that looks like      procedural, with monolithic if-then-else statements. Been there, done      that. )</li>
</ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bearrider.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bearrider.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bearrider.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bearrider.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bearrider.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bearrider.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bearrider.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bearrider.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bearrider.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bearrider.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bearrider.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bearrider.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bearrider.wordpress.com&blog=1328458&post=11&subd=bearrider&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bearrider.wordpress.com/2007/08/30/versus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be0d36abe3ea4da3be771168815cbeb1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bearrider</media:title>
		</media:content>
	</item>
		<item>
		<title>basic oo concepts</title>
		<link>http://bearrider.wordpress.com/2007/08/30/oo-concepts/</link>
		<comments>http://bearrider.wordpress.com/2007/08/30/oo-concepts/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 06:56:10 +0000</pubDate>
		<dc:creator>bearrider</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://bearrider.wordpress.com/2007/08/30/oo-concepts/</guid>
		<description><![CDATA[Is Java pure OO? Not exactly, since primitives are not implemented as objects. Smalltalk for example, is purely OO.


Abstraction:


-         Extract all the common attributes and behaviour for a given set of classes and move them one level up and that will be your first level of abstraction.
- [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bearrider.wordpress.com&blog=1328458&post=10&subd=bearrider&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Is Java pure OO? Not exactly, since primitives are not implemented as objects. Smalltalk for example, is purely OO.</p>
<ul>
<li class="MsoNormal">
<h4>Abstraction:</h4>
</li>
</ul>
<p class="MsoNormal" style="margin-left:1in;text-indent:-0.25in;"><!--[if !supportLists]--><span>-<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">         </span></span><!--[endif]-->Extract all the common attributes and behaviour for a given set of classes and move them one level up and that will be your first level of abstraction.</p>
<p class="MsoNormal" style="margin-left:1in;text-indent:-0.25in;"><!--[if !supportLists]--><span>-<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">         </span></span><!--[endif]-->And so on.</p>
<ul>
<li class="MsoNormal">
<h4>Polymorphism:</h4>
</li>
</ul>
<p class="MsoNormal" style="margin-left:0.75in;">Means different shapes. Yes, we have all <span>heard</span> that one before. We’ve also seen the example of Circle, Triangle and Square inheriting from Shape and overriding the draw() method often enough. However it all became quite clear to me only when I saw it like this:</p>
<p class="MsoNormal" style="margin-left:0.75in;">A Triangle inherits from Shape and implements Drawable.</p>
<blockquote><p> Triangle figure = new Triangle();<br />
Object obj = figure;<br />
Shape shape = figure;<br />
Drawable drawable = figure;</p></blockquote>
<p class="MsoNormal" style="margin-left:0.75in;">Now notice that the <em>same darned</em> object, figure, can behave as a Shape, a Triangle, an Object or even a Drawable, <em>all depending on the type of the reference variable</em>. Impressive, huh?</p>
<p class="MsoNormal" style="margin-left:0.25in;">(Also see: <a href="2007/08/30/versus#rtct" title="polymorphism">runtime and compile time polymorphism</a>)</p>
<ul>
<li class="MsoNormal">
<h4>Inheritance:</h4>
</li>
</ul>
<p class="MsoNormal" style="margin-left:1in;text-indent:-0.25in;"><!--[if !supportLists]--><span>-<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">         </span></span><!--[endif]-->This one is quite simple. An IS-A relationship.</p>
<p class="MsoNormal" style="margin-left:1in;text-indent:-0.25in;"><!--[if !supportLists]--><span>-<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">         </span></span><!--[endif]-->Inherit non-private attributes and methods of a super class</p>
<ul>
<li class="MsoNormal">
<h4>Encapsulation:</h4>
</li>
</ul>
<p class="MsoNormal" style="margin-left:1in;text-indent:-0.25in;"><!--[if !supportLists]--><span>-<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">         </span></span><!--[endif]-->Grouping together of common functionality.</p>
<p class="MsoNormal" style="margin-left:1in;text-indent:-0.25in;"><!--[if !supportLists]--><span>-<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">         </span></span><!--[endif]-->Hiding of internal algorithms. Car.moveForward() will move the car forward. How the car implements moving forward is nobody else’s darned business.</p>
<p class="MsoNormal" style="margin-left:1in;text-indent:-0.25in;"><!--[if !supportLists]--><span>-<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">         </span></span><!--[endif]-->Only revealing the interfaces required to interact with it.</p>
<p class="MsoNormal" style="margin-left:1in;text-indent:-0.25in;"><!--[if !supportLists]--><span>-<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">         </span></span><!--[endif]-->Data protection, usually through getters and setters that will prevent data corruption.</p>
<p class="MsoNormal" style="margin-left:1in;text-indent:-0.25in;"><!--[if !supportLists]--><span>-<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">         </span></span><!--[endif]-->Prudent encapsulation = robust design = easy refactoring.</p>
<ul>
<li class="MsoNormal">
<h4>Composition:</h4>
</li>
</ul>
<p class="MsoNormal" style="margin-left:1in;text-indent:-0.25in;"><!--[if !supportLists]--><span>-<span style="font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;">         </span></span><!--[endif]-->HAS-A relationship. Objects built or composed from other objects. Simple concept but with profound design implications.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bearrider.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bearrider.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bearrider.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bearrider.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bearrider.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bearrider.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bearrider.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bearrider.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bearrider.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bearrider.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bearrider.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bearrider.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bearrider.wordpress.com&blog=1328458&post=10&subd=bearrider&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bearrider.wordpress.com/2007/08/30/oo-concepts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be0d36abe3ea4da3be771168815cbeb1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bearrider</media:title>
		</media:content>
	</item>
		<item>
		<title>insider humour</title>
		<link>http://bearrider.wordpress.com/2007/07/05/4/</link>
		<comments>http://bearrider.wordpress.com/2007/07/05/4/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 15:27:17 +0000</pubDate>
		<dc:creator>bearrider</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://bearrider.wordpress.com/2007/07/05/4/</guid>
		<description><![CDATA[A long time ago, I’d come across (in Reader’s Digest, I think) these :
Two atoms are sitting at a bar. One is looking really downcast.
“I think I have lost an electron”.
“Are you sure?”
“I’m positive.”
A neutron walks into a bar, asks for a stiff one, swigs it down in one gulp and asks the bartender “How [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bearrider.wordpress.com&blog=1328458&post=4&subd=bearrider&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A long time ago, I’d come across (in Reader’s Digest, I think) these :</p>
<blockquote><p>Two atoms are sitting at a bar. One is looking really downcast.<br />
“I think I have lost an electron”.<br />
“Are you sure?”<br />
“I’m positive.”</p></blockquote>
<blockquote><p>A neutron walks into a bar, asks for a stiff one, swigs it down in one gulp and asks the bartender “How much?”<br />
Bartender: “For you, no charge.”</p></blockquote>
<p>And I remember thinking to myself “How incredibly clever!”</p>
<p>Now, I’m a programmer and hang out with similarly feathered birds most of the time but I had yet to come across arcane quips from within the developer community.</p>
<p>No, Dilbert doesn’t really qualify. I’m thinking something absolutely nerdy and demanding knowledge of esoteric programming principles.</p>
<p>And then one day, at a seminar someone mentioned this cartoon he&#8217;d read:</p>
<blockquote><p>C++ programmer to Java programmer, looking around the latter’s messy apartment: “This is what happens when you don’t clear out your own garbage.”</p></blockquote>
<p>Suddenly, I’m encouraged. I’ll be looking out. Watch this space.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/bearrider.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/bearrider.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bearrider.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bearrider.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bearrider.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bearrider.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bearrider.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bearrider.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bearrider.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bearrider.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bearrider.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bearrider.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bearrider.wordpress.com&blog=1328458&post=4&subd=bearrider&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bearrider.wordpress.com/2007/07/05/4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be0d36abe3ea4da3be771168815cbeb1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bearrider</media:title>
		</media:content>
	</item>
	</channel>
</rss>