<?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>Rvidhya&#039;s Blog</title>
	<atom:link href="http://rvidhya.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rvidhya.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 29 Oct 2009 10:16:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rvidhya.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Rvidhya&#039;s Blog</title>
		<link>http://rvidhya.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rvidhya.wordpress.com/osd.xml" title="Rvidhya&#039;s Blog" />
	<atom:link rel='hub' href='http://rvidhya.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Polymorphism</title>
		<link>http://rvidhya.wordpress.com/2009/06/14/polymorphism/</link>
		<comments>http://rvidhya.wordpress.com/2009/06/14/polymorphism/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 09:53:36 +0000</pubDate>
		<dc:creator>rvidhya</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[polymorphism]]></category>

		<guid isPermaLink="false">http://rvidhya.wordpress.com/?p=48</guid>
		<description><![CDATA[Polymorphism: A single object acts differntly in different situation is called Polymorphism. Remember that the only way to access an object is through a reference variable, and there are a few key things to remember about references: A reference variable can be of only one type, and once declared, that type can never be changed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=48&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Polymorphism</strong>:</p>
<p>A single object acts differntly in different situation is called <strong>Polymorphism</strong>.</p>
<p>Remember that the only way to access an object is through a reference variable, and there are a few key things to remember about references:</p>
<ul>
<li>A reference variable can be of only one type, and once declared, that type can never be changed (although the object it references can change).</li>
<li>A reference is a variable, so it can be reassigned to other objects, (unless the reference is declared final).</li>
<li>A reference variable&#8217;s type determines the methods that can be invoked on the object the variable is referencing.</li>
<li>A reference variable can refer to any object of the same type as the declared reference, or—this is the big one—it can refer to any subtype of the<br />
declared type!</li>
<li>A reference variable can be declared as a class type or an interface type. If the variable is declared as an interface type, it can reference any object of any class that implements the interface.<br />
<strong>Examples</strong></li>
</ul>
<p>class PlayerPiece extends GameShape, Animatable { // NO!<br />
// more code<br />
}</p>
<p>A class cannot extend more than one class. That means one parent per class. A class can have multiple ancestors, however, since class B could extend class A, and class C could extend class B, and so on. So any given class might have multiple classes up its inheritance tree, but that&#8217;s not the same as saying a class directly extends two classes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rvidhya.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rvidhya.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rvidhya.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rvidhya.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rvidhya.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rvidhya.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rvidhya.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rvidhya.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rvidhya.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rvidhya.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rvidhya.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rvidhya.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rvidhya.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rvidhya.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=48&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rvidhya.wordpress.com/2009/06/14/polymorphism/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ac5078728f157bb2a65812c2e28a3c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvidhya</media:title>
		</media:content>
	</item>
		<item>
		<title>Inheritance</title>
		<link>http://rvidhya.wordpress.com/2009/06/13/inheritance/</link>
		<comments>http://rvidhya.wordpress.com/2009/06/13/inheritance/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 09:37:31 +0000</pubDate>
		<dc:creator>rvidhya</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[inheritance]]></category>

		<guid isPermaLink="false">http://rvidhya.wordpress.com/?p=45</guid>
		<description><![CDATA[Inheritance

The process of acquiring properties and methods from one class into an another class, without changing the existing code is called inheritance.

<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=45&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Inheritance</strong></p>
<p>The process of acquiring properties and methods from one class into an another class, without changing the existing code is called inheritance.</p>
<p><strong>Examples</strong>:</p>
<p>public class Car {<br />
// Cool Car code goes here<br />
}<br />
public class Subaru extends Car {<br />
// Important Subaru-specific stuff goes here<br />
// Don&#8217;t forget Subaru inherits accessible Car members which<br />
// can include both methods and variables.<br />
}</p>
<p>A Car is a type of Vehicle, so the inheritance tree might start from the Vehicle class as follows:<br />
public class Vehicle { &#8230; }<br />
public class Car extends Vehicle { &#8230; }<br />
public class Subaru extends Car { &#8230; }</p>
<p>In OO terms, you can say the following:<br />
Vehicle is the superclass of Car.<br />
Car is the subclass of Vehicle.<br />
Car is the superclass of Subaru.<br />
Subaru is the subclass of Vehicle.<br />
Car inherits from Vehicle.<br />
Subaru inherits from both Vehicle and Car.<br />
Subaru is derived from Car.<br />
Car is derived from Vehicle.<br />
Subaru is derived from Vehicle.<br />
Subaru is a subtype of both Vehicle and Car.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rvidhya.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rvidhya.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rvidhya.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rvidhya.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rvidhya.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rvidhya.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rvidhya.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rvidhya.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rvidhya.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rvidhya.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rvidhya.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rvidhya.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rvidhya.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rvidhya.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=45&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rvidhya.wordpress.com/2009/06/13/inheritance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ac5078728f157bb2a65812c2e28a3c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvidhya</media:title>
		</media:content>
	</item>
		<item>
		<title>Interface</title>
		<link>http://rvidhya.wordpress.com/2009/06/12/interface/</link>
		<comments>http://rvidhya.wordpress.com/2009/06/12/interface/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 09:14:26 +0000</pubDate>
		<dc:creator>rvidhya</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[interface]]></category>

		<guid isPermaLink="false">http://rvidhya.wordpress.com/?p=43</guid>
		<description><![CDATA[Interface is 100% pure abstract. It is like a contract. In Interface, you cannot define a method. You can only declare a method in an interface. A method which is declared in an Interface is by default, it is Public abstract. Even if you not declared a method like that also, it doesn't matter. Compiler will take this as  like that.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=43&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Interface is 100% pure abstract. It is like a contract. In Interface, you cannot define a method. You can only declare a method in an interface. A method which is declared in an Interface is by default, it is Public abstract. Even if you not declared a method like that also, it doesn&#8217;t matter. Compiler will take this as  like that.</p>
<p><strong>Rules for an Interface</strong></p>
<ul>
<li> All interface methods are implicitly<em> <strong>public</strong></em> and <em><strong>Abstract</strong></em>.</li>
<li>All variables defined in an interface must be <em><strong>public</strong></em>, <strong><em>static</em></strong>, and <em><strong>final</strong></em> in other words, interfaces can declare only constants, not instance variables.</li>
<li>Interface methods must <strong>not</strong> be <em><strong>static</strong></em>.</li>
<li> Because interface methods are abstract, they cannot be marked final, strictfp, or native.</li>
<li>An interface can extend one or more other interfaces.</li>
<li>An interface cannot extend anything but another interface.</li>
<li>An interface cannot implement another interface or class.</li>
<li>An interface must be declared with the keyword interface.</li>
</ul>
<p><strong>Examples</strong></p>
<p>public interface Bounceable {<br />
public abstract void bounce();<br />
public abstract void setBounceFactor(int bf);<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rvidhya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rvidhya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rvidhya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rvidhya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rvidhya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rvidhya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rvidhya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rvidhya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rvidhya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rvidhya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rvidhya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rvidhya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rvidhya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rvidhya.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=43&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rvidhya.wordpress.com/2009/06/12/interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ac5078728f157bb2a65812c2e28a3c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvidhya</media:title>
		</media:content>
	</item>
		<item>
		<title>Abstract class</title>
		<link>http://rvidhya.wordpress.com/2009/06/11/abstract-class/</link>
		<comments>http://rvidhya.wordpress.com/2009/06/11/abstract-class/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 09:27:18 +0000</pubDate>
		<dc:creator>rvidhya</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Abstract]]></category>

		<guid isPermaLink="false">http://rvidhya.wordpress.com/?p=36</guid>
		<description><![CDATA[An Abstract Class can never be instantiated. If a class having an abstract method, then that class should be definitely an abstract class. But in an abstract class, the method may or may not be an abstract!!!

Why make a class if you can't make objects out of it? Because the class might be just too, well, abstract. For example, imagine you have a class Car that has generic methods common to all vehicles. But you don't want anyone actually creating a generic, abstract Car object. How would they initialize its state? What color would it be? How many  seats? Horsepower? All-wheel drive? Or more importantly, how would it behave? In other words, how would the methods be implemented? No, you need programmers to instantiate actual car types such as BMWBoxster and SubaruOutback. We'll bet the Boxster owner will tell you his car does things the Subaru can do "only in its dreams." Take a look at the following abstract class:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=36&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>An <strong>Abstract</strong> Class can never be instantiated. If a class having an abstract method, then that class should be definitely an abstract class. But in an abstract class, the method may or may not be an abstract!!!</p>
<p>Why make a class if you can&#8217;t make objects out of it? Because the class might be just too, well, abstract. For example, imagine you have a class Car that has generic methods common to all vehicles. But you don&#8217;t want anyone actually creating a generic, abstract Car object. How would they initialize its state? What color would it be? How many  seats? Horsepower? All-wheel drive? Or more importantly, how would it behave? In other words, how would the methods be implemented? No, you need programmers to instantiate actual car types such as BMWBoxster and SubaruOutback. We&#8217;ll bet the Boxster owner will tell you his car does things the Subaru can do &#8220;only in its dreams.&#8221; Take a look at the following abstract class:<br />
abstract class Car {<br />
private double price;<br />
private String model;<br />
private String year;<br />
public abstract void goFast();<br />
public abstract void goUpHill();<br />
public abstract void impressNeighbors();<br />
// Additional, important, and serious code goes here<br />
}</p>
<p>The preceding code will compile fine. However, if you try to instantiate a Car in another body of code, you&#8217;ll get a compiler error something like this:<br />
<strong>AnotherClass.java:7: class Car is an abstract<br />
class. It can&#8217;t be instantiated.<br />
Car x = new Car();<br />
1 error</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rvidhya.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rvidhya.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rvidhya.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rvidhya.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rvidhya.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rvidhya.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rvidhya.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rvidhya.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rvidhya.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rvidhya.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rvidhya.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rvidhya.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rvidhya.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rvidhya.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=36&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rvidhya.wordpress.com/2009/06/11/abstract-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ac5078728f157bb2a65812c2e28a3c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvidhya</media:title>
		</media:content>
	</item>
		<item>
		<title>Final class</title>
		<link>http://rvidhya.wordpress.com/2009/06/10/final-class/</link>
		<comments>http://rvidhya.wordpress.com/2009/06/10/final-class/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 09:15:36 +0000</pubDate>
		<dc:creator>rvidhya</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Final]]></category>

		<guid isPermaLink="false">http://rvidhya.wordpress.com/?p=33</guid>
		<description><![CDATA[A class is created with a keyword Final then that class cannot be inherited. If a method is declared as final, then that method cannot be override. If a variable is declared as final then, the value cannot be changed. final is a non access class modifier.

package myPackage;
public final class Animal {
public void Method() { }
}
Now, if we try to compile the Dog subclass:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=33&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A class is created with a keyword Final then that class cannot be inherited. If a method is declared as final, then that method cannot be override. If a variable is declared as final then, the value cannot be changed. final is a non access class modifier.</p>
<p>package myPackage;<br />
public final class Animal {<br />
public void Method() { }<br />
}<br />
Now, if we try to compile the Dog subclass:<br />
package dgPackage;<br />
import myPackage.Animal;<br />
class Dog extends Animal{ }<br />
<strong>We get an error something like<br />
Can&#8217;t subclass final classes: class</strong><br />
myPackage.Animal class Dog extends Animal{<br />
1 error</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rvidhya.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rvidhya.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rvidhya.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rvidhya.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rvidhya.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rvidhya.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rvidhya.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rvidhya.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rvidhya.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rvidhya.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rvidhya.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rvidhya.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rvidhya.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rvidhya.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=33&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rvidhya.wordpress.com/2009/06/10/final-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ac5078728f157bb2a65812c2e28a3c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvidhya</media:title>
		</media:content>
	</item>
		<item>
		<title>Modifiers</title>
		<link>http://rvidhya.wordpress.com/2009/06/09/modifiers/</link>
		<comments>http://rvidhya.wordpress.com/2009/06/09/modifiers/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 09:13:23 +0000</pubDate>
		<dc:creator>rvidhya</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Modifiers]]></category>
		<category><![CDATA[private]]></category>
		<category><![CDATA[protected]]></category>
		<category><![CDATA[public]]></category>

		<guid isPermaLink="false">http://rvidhya.wordpress.com/?p=30</guid>
		<description><![CDATA[There are 3 types of access modifiers used in Java. They are, Public Private Protected Non- Access Modifiers Strictfp, final and abstract There are 4 level of access. They are Public private protected Default Public Access: A class declared with  public keyword can be accessed  by any class within the package and also with different [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=30&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are 3 types of <strong>access modifiers</strong> used in Java. They are,</p>
<ol>
<li>Public</li>
<li>Private</li>
<li>Protected</li>
</ol>
<p><strong>Non- Access Modifiers</strong></p>
<p>Strictfp, final and abstract</p>
<p>There are 4 level of access. They are</p>
<ol>
<li>Public</li>
<li>private</li>
<li>protected</li>
<li>Default</li>
</ol>
<p><strong>Public Access:</strong></p>
<p>A class declared with  public keyword can be accessed  by any class within the package and also with different packages.</p>
<p><strong>Example</strong>:</p>
<p>Package myPackage;</p>
<p>public Class Animal {}</p>
<p>This changes the Animal class so it will be visible to all classes in all packages.The class can now be instantiated from all other classes, and any class is now free to<br />
subclass (extend from) it.</p>
<p><strong>Private Access</strong>:</p>
<p>A class declared with private keyword, can be accessed within a class and within a package . It cannot be inherited.</p>
<p><strong>Example:</strong></p>
<p>Package myPackage;</p>
<p>Private  class Animal {}</p>
<p>The above class is not visible by any class.</p>
<p><strong>Protected Acess:</strong></p>
<p>A class declared with Protected keyword, can be accessed only by its subclass within a package and also with different package.</p>
<p><strong><br />
</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rvidhya.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rvidhya.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rvidhya.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rvidhya.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rvidhya.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rvidhya.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rvidhya.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rvidhya.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rvidhya.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rvidhya.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rvidhya.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rvidhya.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rvidhya.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rvidhya.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=30&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rvidhya.wordpress.com/2009/06/09/modifiers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ac5078728f157bb2a65812c2e28a3c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvidhya</media:title>
		</media:content>
	</item>
		<item>
		<title>Declaring a Class</title>
		<link>http://rvidhya.wordpress.com/2009/06/08/declaring-a-class/</link>
		<comments>http://rvidhya.wordpress.com/2009/06/08/declaring-a-class/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 08:39:38 +0000</pubDate>
		<dc:creator>rvidhya</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Class]]></category>

		<guid isPermaLink="false">http://rvidhya.wordpress.com/?p=28</guid>
		<description><![CDATA[The class can be declared as follows,

Class myClass

{

int abc;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=28&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The class can be declared as follows,</p>
<p>Class <strong>myClass</strong></p>
<p>{</p>
<p>int abc;</p>
<p>}</p>
<p>In the above example, <strong>myClass</strong> is a Identifiers. int is a Keyword and again abc is a Identifier.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rvidhya.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rvidhya.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rvidhya.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rvidhya.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rvidhya.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rvidhya.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rvidhya.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rvidhya.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rvidhya.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rvidhya.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rvidhya.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rvidhya.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rvidhya.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rvidhya.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=28&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rvidhya.wordpress.com/2009/06/08/declaring-a-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ac5078728f157bb2a65812c2e28a3c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvidhya</media:title>
		</media:content>
	</item>
		<item>
		<title>Identifiers &amp; Keywords</title>
		<link>http://rvidhya.wordpress.com/2009/06/07/identifiers-keywords/</link>
		<comments>http://rvidhya.wordpress.com/2009/06/07/identifiers-keywords/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 08:25:17 +0000</pubDate>
		<dc:creator>rvidhya</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Identifiers]]></category>
		<category><![CDATA[Keywords]]></category>

		<guid isPermaLink="false">http://rvidhya.wordpress.com/?p=23</guid>
		<description><![CDATA[IDENTIFIERS

All the Java components like class, variables &#38; methods need names. In java, these names are called Identifiers.

Examples of legal and illegal identifiers follow, first some legal identifiers:
int _v;
int $c;
int ______2_w;
int _$;
int this_is_a_very_detailed_name_for_an_identifier;

<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=23&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>IDENTIFIERS</strong></p>
<p>All the Java components like class, variables &amp; methods need names. In java, these names are called <strong>Identifiers</strong>.</p>
<p><strong>Examples of legal and illegal identifiers follow, first some legal identifiers:</strong><br />
int _v;<br />
int $c;<br />
int ______2_w;<br />
int _$;<br />
int this_is_a_very_detailed_name_for_an_identifier;</p>
<p><strong>The following are illegal</strong> :<br />
int   :b;<br />
int   -d;<br />
int   e#;<br />
int   .f;<br />
int   7g;</p>
<p><strong>KEYWORDS</strong></p>
<p>Like all programming languages, Java has a set of built-in keywords. These keywords must not be used as identifiers.</p>
<p><strong>Examples of Java Keywords</strong>:</p>
<p>abstract ,boolean, break, byte, case, catch, auto,int,char&#8230;&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rvidhya.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rvidhya.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rvidhya.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rvidhya.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rvidhya.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rvidhya.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rvidhya.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rvidhya.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rvidhya.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rvidhya.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rvidhya.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rvidhya.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rvidhya.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rvidhya.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=23&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rvidhya.wordpress.com/2009/06/07/identifiers-keywords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ac5078728f157bb2a65812c2e28a3c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvidhya</media:title>
		</media:content>
	</item>
		<item>
		<title>Introduction</title>
		<link>http://rvidhya.wordpress.com/2009/06/06/introduction/</link>
		<comments>http://rvidhya.wordpress.com/2009/06/06/introduction/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 07:56:41 +0000</pubDate>
		<dc:creator>rvidhya</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://rvidhya.wordpress.com/?p=19</guid>
		<description><![CDATA[Java is an object oriented  language. A Java program is mostly a collection of objects talking to other objects by invoking each other's methods.

    * CLASS - A Class is a user defined template for multiple objects. That describes the kinds of state and behavior that objects of its type support.
    * OBJECT - An object is an instance of that class. Object will have its own state, and access to all of the behaviors defined by its class.

<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=19&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Java</strong> is an <strong>object oriented  language. </strong>A Java program is mostly a collection of <strong>objects </strong>talking to other objects by invoking each other&#8217;s methods.</p>
<ul>
<li><strong>CLASS</strong> &#8211; A Class is a <strong>user defined template</strong> for multiple objects. That describes the kinds of <strong>state</strong> and <strong>behavior</strong> that objects of its type support.</li>
<li><strong>OBJECT</strong> &#8211; An object is an instance of that class. Object will have its own state, and access to all of the behaviors defined by its class.</li>
<li><strong>STATE(Instance variables)</strong> &#8211; Each object (instance of a class) will have its own unique set of instance variables as defined in the class. Collectively, the<br />
values assigned to an object&#8217;s instance variables make up the object&#8217;s state.</li>
<li><strong>BEHAVIOR(Instance methods)</strong> -  Methods are where the class&#8217; logic is stored. Methods arewhere the real work gets done. They are where algorithms get executed, and data gets manipulated.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rvidhya.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rvidhya.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rvidhya.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rvidhya.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rvidhya.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rvidhya.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rvidhya.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rvidhya.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rvidhya.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rvidhya.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rvidhya.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rvidhya.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rvidhya.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rvidhya.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=19&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rvidhya.wordpress.com/2009/06/06/introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ac5078728f157bb2a65812c2e28a3c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvidhya</media:title>
		</media:content>
	</item>
		<item>
		<title>About me</title>
		<link>http://rvidhya.wordpress.com/2009/06/05/about-me/</link>
		<comments>http://rvidhya.wordpress.com/2009/06/05/about-me/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 08:57:00 +0000</pubDate>
		<dc:creator>rvidhya</dc:creator>
				<category><![CDATA[About me]]></category>

		<guid isPermaLink="false">http://rvidhya.wordpress.com/2009/06/15/about-me/</guid>
		<description><![CDATA[HI, this is Vidhya, I&#8217;m working in Chipkidz!!! It&#8217;s a good company!!!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=3&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>HI, this is Vidhya, I&#8217;m working in Chipkidz!!!</p>
<div>It&#8217;s a good company!!!</p>
<div></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rvidhya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rvidhya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rvidhya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rvidhya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rvidhya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rvidhya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rvidhya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rvidhya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rvidhya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rvidhya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rvidhya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rvidhya.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rvidhya.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rvidhya.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rvidhya.wordpress.com&amp;blog=8394436&amp;post=3&amp;subd=rvidhya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rvidhya.wordpress.com/2009/06/05/about-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4ac5078728f157bb2a65812c2e28a3c9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvidhya</media:title>
		</media:content>
	</item>
	</channel>
</rss>
