<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Complete Java Tutorial</title>
	<atom:link href="http://completejavatutorial.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://completejavatutorial.com</link>
	<description>Learn Java, Java Interview Questions, Java tutorial for beginners</description>
	<lastBuildDate>Thu, 04 Jun 2009 06:48:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Use of Abstract Keyword in Java like Abstract Class</title>
		<link>http://completejavatutorial.com/use-of-abstract-keyword-in-java-like-abstract-class/</link>
		<comments>http://completejavatutorial.com/use-of-abstract-keyword-in-java-like-abstract-class/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 06:48:34 +0000</pubDate>
		<dc:creator>gedet basumatary</dc:creator>
				<category><![CDATA[Core Java]]></category>
		<category><![CDATA[Keyword]]></category>
		<category><![CDATA[Write a Program Code]]></category>
		<category><![CDATA[abstract]]></category>
		<category><![CDATA[abstract class]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[compiler error]]></category>
		<category><![CDATA[complete java tutorial]]></category>
		<category><![CDATA[instantiate]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://completejavatutorial.com/?p=61</guid>
		<description><![CDATA[Hi friends, today we will discuss another important keyword of Java called Abstract keyword. Note down this important points of the Abstract keyword

Abstract class acts as a base class for other classes of same type.
Abstract class can&#8217;t be instantiated.
There can be any abstract class without any abstract method but vice versa is not possible.
If we [...]]]></description>
			<content:encoded><![CDATA[<p>Hi friends, today we will discuss another important keyword of Java called Abstract keyword. Note down this important points of the Abstract keyword</p>
<ol>
<li>Abstract class acts as a base class for other classes of same type.</li>
<li>Abstract class can&#8217;t be instantiated.</li>
<li>There can be any abstract class without any abstract method but vice versa is not possible.</li>
<li>If we are extending a class from an abstract class then we have to provide definition of all the abstract method in the first concrete class (concrete class means not abstract class).</li>
<li>Abstract class can have constructors.</li>
<li>Abstract class can have main method also.</li>
</ol>
<p>Let&#8217;s do some practical on Abstract keyword. It will clear our doubts. After all learning through practical implementations will make our concept stronger.</p>
<p>Program 1</p>
<blockquote><p>class abs1<br />
{<br />
void disp();<br />
}</p></blockquote>
<p>Output</p>
<p>This program will give a compile time error because it is a simple class program where we need to give definition to function of the class. Here we didn&#8217;t define the function of the class. Hence we get compile time error.</p>
<p>Program 2</p>
<blockquote><p>class abs2<br />
{<br />
abstract void disp();<br />
}</p></blockquote>
<p>Output</p>
<p>Compile time error.</p>
<p>Reason :- abs 2 should be declared abstract. As I said before, if we declare any method inside the class as abstract then we have to declare the same class as abstract otherwise it will give a compile time error.</p>
<p>Program 3</p>
<blockquote><p>abstract class abs3<br />
{<br />
abstract void disp();<br />
}</p></blockquote>
<p>Output</p>
<p>It will compile successfully.</p>
<p>Reason: &#8211; Since we have declared both method and class as abstract so there won&#8217;t be a problem.</p>
<p>Program 4</p>
<blockquote><p>abstract class abs4<br />
{<br />
static void show()<br />
{<br />
System.out.println(&#8220;Hello&#8221;);<br />
}<br />
public static void main(String[] args)<br />
{<br />
show();<br />
}<br />
}</p></blockquote>
<p>Output</p>
<blockquote><p>Hello</p></blockquote>
<p>Reason: &#8211; It will print the Hello statement. Here we have used a static keyword with the function, so we didn&#8217;t create instance of class. Now check out the program 5, it will make you things more clear.</p>
<p>Program 5</p>
<blockquote><p>abstract class abs5<br />
{<br />
void show()<br />
{<br />
System.out.println(&#8220;Hello&#8221;);<br />
}<br />
public static void main(String[] args)<br />
{<br />
new abs5.show();<br />
}<br />
}</p></blockquote>
<p>Output</p>
<blockquote><p>Compile time error.</p></blockquote>
<p>Reason: &#8211; We tried to instantiate and its clearly written in the above statement of abstract that Abstract class can&#8217;t be instantiated. This program 5 is almost same to program 4. Here we just removed the static keyword. Since the method or function is not static now, so we will need to instantiate to call the method but we are not allowed to instantiate in abstract class. So we get compiler time error.</p>
<p>Program 6</p>
<blockquote><p>abstract class abs7<br />
{<br />
abstract void disp();<br />
}</p>
<p>class check extends abs7<br />
{<br />
public static void main(String[] ar)<br />
{<br />
new check().disp();<br />
}<br />
}</p></blockquote>
<p>Output</p>
<blockquote><p>Compile time error.</p></blockquote>
<p>Reason: &#8211; Here we have created two class check and abs7. abs7 is the base class and abstract class. We are inheriting the abstract class here but we are not defining the abstract method in the derived class. Since we didn&#8217;t define the abstract class in the in the derive class it caused a compiler error. If you read the above statement of abstract class its clear written that &#8220;<em>If we are extending a class from an abstract class then we have to provide definition of all the abstract method in the first concrete class (concrete class means not abstract class).</em>&#8221;</p>
<p>Note: &#8211; I will update this post more later.</p>
<input id="gwProxy" type="hidden" />
<p><!--Session data--><br />
<input id="gwProxy" type="hidden"/><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<strong>Share this Post</strong><small><a alt="" href="http://www.picturesurf.org/share-buttons/">[?]</a></small><div id="sharepost" style="padding-top:10px;" ><a href="mailto:?subject=Use of Abstract Keyword in Java like Abstract Class&amp;body=http://completejavatutorial.com/use-of-abstract-keyword-in-java-like-abstract-class/" target="_blank"><img src="http://www.picturesurf.org/img/shreml.png" alt="" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=http://completejavatutorial.com/use-of-abstract-keyword-in-java-like-abstract-class/" target="_blank"><img src="http://www.picturesurf.org/img/shrfb.png" alt="" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=http://completejavatutorial.com/use-of-abstract-keyword-in-java-like-abstract-class/ target="_blank"><img src="http://www.picturesurf.org/img/shrtwr.png" alt="" /></a>&nbsp;&nbsp;<a href="http://digg.com/submit?url=http://completejavatutorial.com/use-of-abstract-keyword-in-java-like-abstract-class/&amp;title=Use of Abstract Keyword in Java like Abstract Class&amp;bodytext=&amp;media=&amp;topic=" target="_blank"><img src="http://www.picturesurf.org/img/shrdig.png" alt="" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=http://completejavatutorial.com/use-of-abstract-keyword-in-java-like-abstract-class/&amp;title=Use of Abstract Keyword in Java like Abstract Class" target="_blank"><img src="http://www.picturesurf.org/img/shrdel.png" alt="" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://completejavatutorial.com/use-of-abstract-keyword-in-java-like-abstract-class/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Use of Super Keyword in Java</title>
		<link>http://completejavatutorial.com/use-of-super-keyword-in-java/</link>
		<comments>http://completejavatutorial.com/use-of-super-keyword-in-java/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 05:12:36 +0000</pubDate>
		<dc:creator>gedet basumatary</dc:creator>
				<category><![CDATA[Core Java]]></category>
		<category><![CDATA[Keyword]]></category>
		<category><![CDATA[Write a Program Code]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[complete java tutorial]]></category>
		<category><![CDATA[derived class]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[parent class]]></category>
		<category><![CDATA[super]]></category>

		<guid isPermaLink="false">http://completejavatutorial.com/?p=57</guid>
		<description><![CDATA[Ok today we will try to discuss the super keyword of Java. What is the super keyword in Java?, What is the use of super Keyword in Java?, How to practically implement super keyword in Java?, we will discuss all this things. So first note down these important points regarding super keyword in Java.

Super keyword [...]]]></description>
			<content:encoded><![CDATA[<p>Ok today we will try to discuss the <strong>super</strong> keyword of Java. What is the<strong> super</strong> keyword in Java?, What is the use of <strong>super</strong> Keyword in Java?, How to practically implement <strong>super</strong> keyword in Java?, we will discuss all this things. So first note down these important points regarding <strong>super</strong> keyword in Java.</p>
<ol>
<li><strong>Super</strong> keyword is used to call immediate parent.</li>
<li><strong>Super</strong> keyword can be used with instance members i.e., instance variables and instance methods.</li>
<li><strong>Super</strong> keyword can be used within constructor to call the constructor of parent class.</li>
</ol>
<p>OK now let&#8217;s practically implement this points of <strong>super</strong> keyword.</p>
<p>Check out the difference between program 1 and 2. Here program 2 proofs our first  statement of <strong>Super</strong> keyword in Java.</p>
<p>Program 1</p>
<blockquote><p>class base<br />
{<br />
int a = 100;<br />
}</p>
<p>class sup1 extends base<br />
{<br />
int a = 200;<br />
void show()<br />
{<br />
System.out.println(a);<br />
System.out.println(a);<br />
}<br />
public static void main(String[] args)<br />
{<br />
new sup1().show();<br />
}<br />
}</p></blockquote>
<p>Output : -</p>
<blockquote><p>200</p>
<p>200</p></blockquote>
<p>Now check out the program 2 and try to figure out the main difference.</p>
<p>Program 2</p>
<blockquote><p>class base<br />
{<br />
int a = 100;<br />
}</p>
<p>class sup2 extends base<br />
{<br />
int a = 200;<br />
void show()<br />
{<br />
System.out.println(super.a);<br />
System.out.println(a);<br />
}<br />
public static void main(String[] args)<br />
{<br />
new sup2().show();<br />
}<br />
}</p></blockquote>
<p>Output</p>
<blockquote><p>100</p>
<p>200</p></blockquote>
<p>In the program 1, the output was only of the derived class. It couldn&#8217;t print the variable of base class or parent class. But in the program 2, we used a super keyword with the variable a while printing its output and instead of printing the value of variable a of derived, it printed the value of variable a of base class. So it proofs that <strong>Super</strong> keyword is used to call immediate parent.</p>
<p>OK now check out the difference between program 3 and program 4</p>
<p>Program 3</p>
<blockquote><p>class base<br />
{<br />
int a = 100;<br />
void show()<br />
{<br />
System.out.println(a);<br />
}<br />
}</p>
<p>class sup3 extends base<br />
{<br />
int a = 200;<br />
void show()<br />
{<br />
System.out.println(a);<br />
}<br />
public static void main(String[] args)<br />
{<br />
new sup3().show();<br />
}<br />
}</p></blockquote>
<p>Output</p>
<blockquote><p>200</p></blockquote>
<p>Here the output is 200. When we called the show function, the show function of derived class was called. But what should we do if we want to call the show function of the parent class. Check out the program 4 for solution.</p>
<p>Program 4</p>
<blockquote><p>class base<br />
{<br />
int a = 100;<br />
void show()<br />
{<br />
System.out.println(a);<br />
}<br />
}</p>
<p>class sup4 extends base<br />
{<br />
int a = 200;<br />
void show()<br />
{<br />
super.show();<br />
System.out.println(a);<br />
}<br />
public static void main(String[] args)<br />
{<br />
new sup4().show();<br />
}<br />
}</p></blockquote>
<p>Output</p>
<blockquote><p>100</p>
<p>200</p></blockquote>
<p>Here we are getting two output 100 and 200. When the show function of derived class is invoke, it first calls the show function of parent class because inside the show function of derived class we called the show function of parent class by putting the <strong>super</strong> keyword before the function name.</p>
<p>Ok here&#8217;s a program for you. You need to predict the output of this program</p>
<blockquote><p>class base<br />
{<br />
int a=100;<br />
void show()<br />
{<br />
System.out.println(a);<br />
}<br />
}</p>
<p>class sup5 extends base<br />
{<br />
int a=200;<br />
void show()<br />
{<br />
System.out.println(a);<br />
super.show();<br />
}<br />
public static void main(String[] args)<br />
{<br />
new sup5().show();<br />
}<br />
}</p></blockquote>
<p>So tell us, what will be the output? So now I think you too know what is <strong>super</strong> keyword in Java? How and where the <strong>super</strong> keyword is used in Java? So friends, if you find or face any difficulty in learning this <strong>super</strong> keyword of Java then let me know.</p>
<input id="gwProxy" type="hidden" />
<p><!--Session data--></p>
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden" />
<p><!--Session data--></p>
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden"/><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<strong>Share this Post</strong><small><a alt="" href="http://www.picturesurf.org/share-buttons/">[?]</a></small><div id="sharepost" style="padding-top:10px;" ><a href="mailto:?subject=Use of Super Keyword in Java&amp;body=http://completejavatutorial.com/use-of-super-keyword-in-java/" target="_blank"><img src="http://www.picturesurf.org/img/shreml.png" alt="" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=http://completejavatutorial.com/use-of-super-keyword-in-java/" target="_blank"><img src="http://www.picturesurf.org/img/shrfb.png" alt="" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=http://completejavatutorial.com/use-of-super-keyword-in-java/ target="_blank"><img src="http://www.picturesurf.org/img/shrtwr.png" alt="" /></a>&nbsp;&nbsp;<a href="http://digg.com/submit?url=http://completejavatutorial.com/use-of-super-keyword-in-java/&amp;title=Use of Super Keyword in Java&amp;bodytext=&amp;media=&amp;topic=" target="_blank"><img src="http://www.picturesurf.org/img/shrdig.png" alt="" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=http://completejavatutorial.com/use-of-super-keyword-in-java/&amp;title=Use of Super Keyword in Java" target="_blank"><img src="http://www.picturesurf.org/img/shrdel.png" alt="" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://completejavatutorial.com/use-of-super-keyword-in-java/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Delay initialization of Final Variable are Possible only within Constructor</title>
		<link>http://completejavatutorial.com/delay-initialization-of-final-variable-are-possible-only-within-constructor/</link>
		<comments>http://completejavatutorial.com/delay-initialization-of-final-variable-are-possible-only-within-constructor/#comments</comments>
		<pubDate>Sat, 23 May 2009 13:06:17 +0000</pubDate>
		<dc:creator>gedet basumatary</dc:creator>
				<category><![CDATA[Core Java]]></category>
		<category><![CDATA[Write a Program Code]]></category>
		<category><![CDATA[assign value to final variable within constructor]]></category>
		<category><![CDATA[contructor]]></category>
		<category><![CDATA[final]]></category>
		<category><![CDATA[final keyword]]></category>
		<category><![CDATA[java programming]]></category>
		<category><![CDATA[Keyword]]></category>
		<category><![CDATA[practically prove final keyword]]></category>

		<guid isPermaLink="false">http://completejavatutorial.com/?p=55</guid>
		<description><![CDATA[Yeah we are going to practically prove another statement of final keyword called Delay initialization of final variable are possible only within constructor. 
We are going to write total 3 programs to prove it.
Program 1: -
class fin4
{
final int a=10;
void show()
{
System.out.println(a);
}
static public void main(String[] args)
{
new fin4().show();
}
}
If you compile this program, you will get output of 10 [...]]]></description>
			<content:encoded><![CDATA[<p>Yeah we are going to practically prove another statement of <strong>fina</strong>l keyword called <strong>Delay initialization of final variable are possible only within constructor. </strong></p>
<p>We are going to write total 3 programs to prove it.</p>
<p>Program 1: -</p>
<blockquote><p>class fin4<br />
{<br />
final int a=10;<br />
void show()<br />
{<br />
System.out.println(a);<br />
}<br />
static public void main(String[] args)<br />
{<br />
new fin4().show();<br />
}<br />
}</p></blockquote>
<p>If you compile this program, you will get output of 10 because there is no any error in the program but check out the program no. 2 and try finding out the differences.</p>
<blockquote><p>class fin4<br />
{<br />
final int a;<br />
void show()<br />
{<br />
a=10;<br />
System.out.println(a);<br />
}<br />
static public void main(String[] args)<br />
{<br />
new fin4().show();<br />
}<br />
}</p></blockquote>
<p>Here, in this program we didn&#8217;t assigned any value to the data member a in the first place so we are assigning value of 10 to local variable a.</p>
<blockquote><p>a=10;</p></blockquote>
<p>Remember variable a is already declared as final in the first place so the value can&#8217;t be assigned to a in any other place except constructor. So we will get an error message that <strong>cannot assign value to final variable a</strong>. Also check out the screen shot of compilation of this final keyword program 2.</p>
<p><img class="aligncenter" title="write a java program to including final keyword, compilation of java program including final keyword" src="http://completejavatutorial.com/wp-content/finalkeywordinjava2.JPG" alt="" width="491" height="196" /></p>
<p>Now there is only one way to assign value to a i.e., within construction. Check out this program 3.</p>
<blockquote><p>class fin5<br />
{<br />
final int a;<br />
fin5()<br />
{<br />
a=10;<br />
}<br />
void show()<br />
{<br />
System.out.println(a);<br />
}<br />
static public void main(String[] args)<br />
{<br />
new fin5().show();<br />
}<br />
}</p></blockquote>
<p>Here we have called a constructor</p>
<p>fin5()<br />
{<br />
a=10;<br />
}</p>
<p>and is assigning the value to variable a. There is legal way in final keyword. If you compile this program, you will not get any error. The output will be zero. Also check out the screen shot of compilation and output of the java program. <img class="aligncenter" title="write a java program including final keyword, compilation and output of the java program including final keyword" src="http://completejavatutorial.com/wp-content/finalkeywordinjava3.JPG" alt="" width="365" height="197" /></p>
<p>So now we know that <strong>Delay initialization of Final Variable are Possible only within Constructor</strong>.</p>
<input id="gwProxy" type="hidden"/><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<strong>Share this Post</strong><small><a alt="" href="http://www.picturesurf.org/share-buttons/">[?]</a></small><div id="sharepost" style="padding-top:10px;" ><a href="mailto:?subject=Delay initialization of Final Variable are Possible only within Constructor&amp;body=http://completejavatutorial.com/delay-initialization-of-final-variable-are-possible-only-within-constructor/" target="_blank"><img src="http://www.picturesurf.org/img/shreml.png" alt="" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=http://completejavatutorial.com/delay-initialization-of-final-variable-are-possible-only-within-constructor/" target="_blank"><img src="http://www.picturesurf.org/img/shrfb.png" alt="" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=http://completejavatutorial.com/delay-initialization-of-final-variable-are-possible-only-within-constructor/ target="_blank"><img src="http://www.picturesurf.org/img/shrtwr.png" alt="" /></a>&nbsp;&nbsp;<a href="http://digg.com/submit?url=http://completejavatutorial.com/delay-initialization-of-final-variable-are-possible-only-within-constructor/&amp;title=Delay initialization of Final Variable are Possible only within Constructor&amp;bodytext=&amp;media=&amp;topic=" target="_blank"><img src="http://www.picturesurf.org/img/shrdig.png" alt="" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=http://completejavatutorial.com/delay-initialization-of-final-variable-are-possible-only-within-constructor/&amp;title=Delay initialization of Final Variable are Possible only within Constructor" target="_blank"><img src="http://www.picturesurf.org/img/shrdel.png" alt="" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://completejavatutorial.com/delay-initialization-of-final-variable-are-possible-only-within-constructor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can we Inherit Final Class in Java Language</title>
		<link>http://completejavatutorial.com/can-we-inherit-final-class-in-java-language/</link>
		<comments>http://completejavatutorial.com/can-we-inherit-final-class-in-java-language/#comments</comments>
		<pubDate>Sat, 23 May 2009 12:24:35 +0000</pubDate>
		<dc:creator>gedet basumatary</dc:creator>
				<category><![CDATA[Core Java]]></category>
		<category><![CDATA[Write a Program Code]]></category>
		<category><![CDATA[final]]></category>
		<category><![CDATA[final keyword]]></category>
		<category><![CDATA[inheritance of final class]]></category>
		<category><![CDATA[java programming]]></category>
		<category><![CDATA[Keyword]]></category>
		<category><![CDATA[practically prove final keyword]]></category>

		<guid isPermaLink="false">http://completejavatutorial.com/?p=52</guid>
		<description><![CDATA[Well we know that Inheritance is the very important part of any programming language, the same is with the Java programming language. We are talking about the final keyword usage. So the question is, can we inherit final class in Java language. If you had read my earlier post about final keyword then you should [...]]]></description>
			<content:encoded><![CDATA[<p>Well we know that Inheritance is the very important part of any programming language, the same is with the Java programming language. We are talking about the <strong>final</strong> keyword usage. So the question is, can we inherit <strong>final</strong> class in Java language. If you had read my earlier post about final keyword then you should know that <strong>If we declare any class as final, it can’t be inherited</strong>. So the answer to the question is NO.  Since now you know the answer, you should try to practically prove it.</p>
<p>Check out this program code including <strong>final</strong> keyword: -</p>
<blockquote><p>final class fin2<br />
{</p>
<p>}<br />
class derived extends fin2<br />
{</p>
<p>}</p></blockquote>
<p>Here we have two classes fin2 and derived. fin2 is a <strong>final </strong>class and derived is a simple class. They are trying to build inheritance relationship because</p>
<blockquote><p>class derived extends fin2</p></blockquote>
<p>Since fin2 is a <strong>final</strong> class, it cannot be inherited. If you compile this program, there will be an error message. Check out the compilation of this java program below</p>
<p><img class="aligncenter" title="can we inherit final class in java language, compile time of java language including final keyword" src="http://completejavatutorial.com/wp-content/finalkeywordinjava1.JPG" alt="" width="483" height="233" /></p>
<p>So now we know that<strong> final class can not be inherited</strong> in java language.</p>
<input id="gwProxy" type="hidden"/><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<strong>Share this Post</strong><small><a alt="" href="http://www.picturesurf.org/share-buttons/">[?]</a></small><div id="sharepost" style="padding-top:10px;" ><a href="mailto:?subject=Can we Inherit Final Class in Java Language&amp;body=http://completejavatutorial.com/can-we-inherit-final-class-in-java-language/" target="_blank"><img src="http://www.picturesurf.org/img/shreml.png" alt="" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=http://completejavatutorial.com/can-we-inherit-final-class-in-java-language/" target="_blank"><img src="http://www.picturesurf.org/img/shrfb.png" alt="" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=http://completejavatutorial.com/can-we-inherit-final-class-in-java-language/ target="_blank"><img src="http://www.picturesurf.org/img/shrtwr.png" alt="" /></a>&nbsp;&nbsp;<a href="http://digg.com/submit?url=http://completejavatutorial.com/can-we-inherit-final-class-in-java-language/&amp;title=Can we Inherit Final Class in Java Language&amp;bodytext=&amp;media=&amp;topic=" target="_blank"><img src="http://www.picturesurf.org/img/shrdig.png" alt="" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=http://completejavatutorial.com/can-we-inherit-final-class-in-java-language/&amp;title=Can we Inherit Final Class in Java Language" target="_blank"><img src="http://www.picturesurf.org/img/shrdel.png" alt="" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://completejavatutorial.com/can-we-inherit-final-class-in-java-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Implement Final keyword Practically in Java</title>
		<link>http://completejavatutorial.com/implement-final-keyword-practically-in-java/</link>
		<comments>http://completejavatutorial.com/implement-final-keyword-practically-in-java/#comments</comments>
		<pubDate>Sat, 23 May 2009 12:03:47 +0000</pubDate>
		<dc:creator>gedet basumatary</dc:creator>
				<category><![CDATA[Core Java]]></category>
		<category><![CDATA[Write a Program Code]]></category>
		<category><![CDATA[final]]></category>
		<category><![CDATA[final keyword]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java programming code]]></category>
		<category><![CDATA[Keyword]]></category>
		<category><![CDATA[practically prove final keyword]]></category>

		<guid isPermaLink="false">http://completejavatutorial.com/?p=48</guid>
		<description><![CDATA[Hi friends, in the last post we discussed about important points of final keyword. Now we are going to practically prove all the points of the final keywords. If I leave any point then please inform me because final keywords are also very important, concept should be clear.
Check out this simple program code: -
class fin1
{
public [...]]]></description>
			<content:encoded><![CDATA[<p>Hi friends, in the last post we discussed about important points of <a title="final keyword in java language" href="http://completejavatutorial.com/final-keyword-in-java-language/" target="_blank"><strong>final</strong></a> keyword. Now we are going to practically prove all the points of the <strong>final</strong> keywords. If I leave any point then please inform me because <strong>final</strong> keywords are also very important, concept should be clear.</p>
<p>Check out this simple program code: -</p>
<blockquote><p>class fin1<br />
{<br />
public static void main(String[] ar)<br />
{<br />
final int a=100;<br />
}<br />
}</p></blockquote>
<p>If you compile this program, it will show no error.</p>
<p>Now check out this program and try to notice the main difference: -</p>
<blockquote><p>class fin1<br />
{<br />
public static void main(String[] ar)<br />
{<br />
final int a=100;<br />
a=200;<br />
}<br />
}</p></blockquote>
<p>Now if you compile this program, it will show 1 error. What can be the error. We have already declared variable <strong>a</strong> as <strong>final</strong> and have assigned a value = 100. Since we have assigned final variable a = 100 and according to the statement of the <strong>final</strong> keyword</p>
<p><strong>If we declare any variable as final, it will be constant</strong>.</p>
<p>So a = 100 is already constant, it can not be changed but we tried to change by reassigning a new value a = 200. So we got an error message.Check out the screen shot of the compilation below</p>
<p><img class="aligncenter" title="Program code including final keyword in Java" src="http://completejavatutorial.com/wp-content/finalkeywordinjava.JPG" alt="" width="483" height="232" /></p>
<p>This programming of the <strong>final</strong> keyword in Java proofs the statement : -</p>
<p><strong>If we declare any variable as final, it will be constant. </strong></p>
<p>So now you know how to practically proof it.</p>
<input id="gwProxy" type="hidden" />
<p><!--Session data--></p>
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden"/><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<strong>Share this Post</strong><small><a alt="" href="http://www.picturesurf.org/share-buttons/">[?]</a></small><div id="sharepost" style="padding-top:10px;" ><a href="mailto:?subject=Implement Final keyword Practically in Java&amp;body=http://completejavatutorial.com/implement-final-keyword-practically-in-java/" target="_blank"><img src="http://www.picturesurf.org/img/shreml.png" alt="" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=http://completejavatutorial.com/implement-final-keyword-practically-in-java/" target="_blank"><img src="http://www.picturesurf.org/img/shrfb.png" alt="" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=http://completejavatutorial.com/implement-final-keyword-practically-in-java/ target="_blank"><img src="http://www.picturesurf.org/img/shrtwr.png" alt="" /></a>&nbsp;&nbsp;<a href="http://digg.com/submit?url=http://completejavatutorial.com/implement-final-keyword-practically-in-java/&amp;title=Implement Final keyword Practically in Java&amp;bodytext=&amp;media=&amp;topic=" target="_blank"><img src="http://www.picturesurf.org/img/shrdig.png" alt="" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=http://completejavatutorial.com/implement-final-keyword-practically-in-java/&amp;title=Implement Final keyword Practically in Java" target="_blank"><img src="http://www.picturesurf.org/img/shrdel.png" alt="" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://completejavatutorial.com/implement-final-keyword-practically-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FINAL keyword in Java Language</title>
		<link>http://completejavatutorial.com/final-keyword-in-java-language/</link>
		<comments>http://completejavatutorial.com/final-keyword-in-java-language/#comments</comments>
		<pubDate>Sat, 23 May 2009 07:06:52 +0000</pubDate>
		<dc:creator>gedet basumatary</dc:creator>
				<category><![CDATA[Core Java]]></category>
		<category><![CDATA[Keyword]]></category>
		<category><![CDATA[final]]></category>
		<category><![CDATA[final kewword in java]]></category>

		<guid isPermaLink="false">http://completejavatutorial.com/?p=45</guid>
		<description><![CDATA[Last time we discussed about the this keyword. Today we will discussed about another keyword called final. So note down the important points of the final keyword: -

Final is a keyword which can be used with variables, methods and classes.
If we declare any variable as final, it will be constant.
If we declare any method as [...]]]></description>
			<content:encoded><![CDATA[<p>Last time we discussed about the this keyword. Today we will discussed about another keyword called <strong>final</strong>. So note down the important points of the <strong>final</strong> keyword: -</p>
<ol>
<li>Final is a keyword which can be used with variables, methods and classes.</li>
<li>If we declare any variable as final, it will be constant.</li>
<li>If we declare any method as final, it cannot be overridden.</li>
<li>If we declare any class as final, it can&#8217;t be inheritance.</li>
<li>Final is the only modifier which can be used with local variables.</li>
<li>Delay initialization of final variable are possible only within constructor.</li>
<li>Final variables will never get default variables.</li>
</ol>
<input id="gwProxy" type="hidden" />
<p><!--Session data--></p>
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden"/><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<strong>Share this Post</strong><small><a alt="" href="http://www.picturesurf.org/share-buttons/">[?]</a></small><div id="sharepost" style="padding-top:10px;" ><a href="mailto:?subject=FINAL keyword in Java Language&amp;body=http://completejavatutorial.com/final-keyword-in-java-language/" target="_blank"><img src="http://www.picturesurf.org/img/shreml.png" alt="" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=http://completejavatutorial.com/final-keyword-in-java-language/" target="_blank"><img src="http://www.picturesurf.org/img/shrfb.png" alt="" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=http://completejavatutorial.com/final-keyword-in-java-language/ target="_blank"><img src="http://www.picturesurf.org/img/shrtwr.png" alt="" /></a>&nbsp;&nbsp;<a href="http://digg.com/submit?url=http://completejavatutorial.com/final-keyword-in-java-language/&amp;title=FINAL keyword in Java Language&amp;bodytext=&amp;media=&amp;topic=" target="_blank"><img src="http://www.picturesurf.org/img/shrdig.png" alt="" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=http://completejavatutorial.com/final-keyword-in-java-language/&amp;title=FINAL keyword in Java Language" target="_blank"><img src="http://www.picturesurf.org/img/shrdel.png" alt="" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://completejavatutorial.com/final-keyword-in-java-language/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Write a Program including This Keyword in Java</title>
		<link>http://completejavatutorial.com/write-a-program-including-this-keyword-in-java/</link>
		<comments>http://completejavatutorial.com/write-a-program-including-this-keyword-in-java/#comments</comments>
		<pubDate>Sat, 23 May 2009 06:28:16 +0000</pubDate>
		<dc:creator>gedet basumatary</dc:creator>
				<category><![CDATA[Core Java]]></category>
		<category><![CDATA[Write a Program Code]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java program]]></category>
		<category><![CDATA[this keyword]]></category>

		<guid isPermaLink="false">http://completejavatutorial.com/?p=37</guid>
		<description><![CDATA[In earlier post of this keyword we have written a program which is related to this keyword. Since we didn&#8217;t use the this keyword, the default value (0,0) of data members are displayed. Now we will write the same program again but will include the this keyword this time. Check out the main difference and [...]]]></description>
			<content:encoded><![CDATA[<p>In earlier post of <a title="this keyword in java" href="http://completejavatutorial.com/" target="_blank">this keyword</a> we have written a program which is related to <strong>this</strong> keyword. Since we didn&#8217;t use the <strong>this</strong> keyword, the default value (0,0) of data members are displayed. Now we will write the same program again but will include the <strong>this</strong> keyword this time. Check out the main difference and output too.</p>
<blockquote><p>class th2<br />
{<br />
int a, b;<br />
th2(int a, int b)<br />
{<br />
this.a=a;<br />
this.b=b;<br />
}<br />
public void show()<br />
{<br />
System.out.println(a);<br />
System.out.println(b);<br />
}<br />
public static void main(String[] args)<br />
{<br />
//new th2(20,30).show();<br />
th2 t2=new th2(20,30);<br />
t2.show();<br />
}<br />
}</p></blockquote>
<p>The above program will display the output 20, 30. Check out the screen shot below</p>
<p><img class="aligncenter" title="Program of This Keyword in Java" src="http://completejavatutorial.com/wp-content/programofthiskeywordinjava.JPG" alt="" width="338" height="243" /></p>
<p>We have use <strong>this</strong> keyword in the constructor &#8220;th2&#8243; because we want to refer to the parameter of the constructor not the data members. Due to the use of this keyword</p>
<blockquote><p>this.a=a;</p>
<p>this.b=b;</p></blockquote>
<p>The value passed to the parameter of the constructor is called rather than the data members value.</p>
<p>This program practically proved the statement 1 of the <a title="this keyword in java" href="http://completejavatutorial.com/this-keyword-in-java-language/" target="_blank">this</a> keyword -</p>
<p>&#8220;<strong>this</strong> always refers to current object.&#8221;</p>
<input id="gwProxy" type="hidden" />
<p><!--Session data--><strong>Note: &#8211; </strong></p>
<p>You can instantiate member referance in two ways</p>
<blockquote><p>th2 t2 = new th2(20, 30);</p>
<p>t2.show();</p></blockquote>
<p style="text-align: left;">or</p>
<blockquote><p>new th2(20,30).show();</p></blockquote>
<input id="gwProxy" type="hidden"/><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<strong>Share this Post</strong><small><a alt="" href="http://www.picturesurf.org/share-buttons/">[?]</a></small><div id="sharepost" style="padding-top:10px;" ><a href="mailto:?subject=Write a Program including This Keyword in Java&amp;body=http://completejavatutorial.com/write-a-program-including-this-keyword-in-java/" target="_blank"><img src="http://www.picturesurf.org/img/shreml.png" alt="" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=http://completejavatutorial.com/write-a-program-including-this-keyword-in-java/" target="_blank"><img src="http://www.picturesurf.org/img/shrfb.png" alt="" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=http://completejavatutorial.com/write-a-program-including-this-keyword-in-java/ target="_blank"><img src="http://www.picturesurf.org/img/shrtwr.png" alt="" /></a>&nbsp;&nbsp;<a href="http://digg.com/submit?url=http://completejavatutorial.com/write-a-program-including-this-keyword-in-java/&amp;title=Write a Program including This Keyword in Java&amp;bodytext=&amp;media=&amp;topic=" target="_blank"><img src="http://www.picturesurf.org/img/shrdig.png" alt="" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=http://completejavatutorial.com/write-a-program-including-this-keyword-in-java/&amp;title=Write a Program including This Keyword in Java" target="_blank"><img src="http://www.picturesurf.org/img/shrdel.png" alt="" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://completejavatutorial.com/write-a-program-including-this-keyword-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Write a Program about THIS keyword in Java</title>
		<link>http://completejavatutorial.com/write-a-program-about-this-keyword-in-java/</link>
		<comments>http://completejavatutorial.com/write-a-program-about-this-keyword-in-java/#comments</comments>
		<pubDate>Thu, 21 May 2009 20:46:25 +0000</pubDate>
		<dc:creator>gedet basumatary</dc:creator>
				<category><![CDATA[Keyword]]></category>
		<category><![CDATA[Write a Program Code]]></category>

		<guid isPermaLink="false">http://completejavatutorial.com/?p=33</guid>
		<description><![CDATA[I have discussed earlier about the this keyword with you. Now we will do a programming to how to use this keyword practically. It will surely clear your doubts and make your concept about this keyword more strong.
There will be a series of this program around 4 programs. You will need to read all the [...]]]></description>
			<content:encoded><![CDATA[<p>I have discussed earlier about the <a title="this, this keyword in java, what is this keyword" href="http://completejavatutorial.com/this-keyword-in-java-language/" target="_blank">this</a> keyword with you. Now we will do a programming to how to use <strong>this</strong> keyword practically. It will surely clear your doubts and make your concept about this keyword more strong.</p>
<p>There will be a series of <strong>this</strong> program around 4 programs. You will need to read all the 4 <strong>this</strong> program to understand the concept.</p>
<p>Program 1: &#8211; (In this program, I didn&#8217;t use <strong>this</strong> keyword)</p>
<blockquote><p>class th1<br />
{<br />
int a,b;<br />
th1(int a, int b)<br />
{<br />
a=a;<br />
b=b;<br />
}<br />
public void show()<br />
{<br />
System.out.println(a);<br />
System.out.println(b);<br />
}<br />
public static void main(String[] ar)<br />
{<br />
new th1(10, 20).show();<br />
}<br />
}</p></blockquote>
<p>Create a particular folder on the drive like <strong>myjava</strong> and save this file as <strong>&#8220;th1.java&#8221;</strong></p>
<p>Now open command prompt to compile and run the program. You can also click run and type cmd. It will open a command prompt.</p>
<p>If you are going to compile the java program for the first time then you will need to set the path of the java for whenever you open the command prompt. Its very easy process. When you installed the jdk software of any version probably in c drive then it gets a path like it is installed under program files in the c drive. Click the program files and click the java and then click the jdk software and then click the bin. Now in the address bar, check out the path and copy it and paste in the command prompt like I did</p>
<p><strong>c:\java&gt;set path=<img src="file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/moz-screenshot-1.jpg" alt="" />C:\j2sdk1.4.0\bin</strong></p>
<p>Also check out the screen shot</p>
<p><img class="aligncenter" title="Set the path in java, how to set path in java" src="http://completejavatutorial.com/wp-content/setthejavapath.JPG" alt="" width="387" height="219" /></p>
<p>After that compile the program by writing this code</p>
<p><img src="file:///C:/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/Temp/moz-screenshot.jpg" alt="" /><strong>javac th1.java</strong></p>
<p>If there is no error then run the program by writing the code</p>
<p><strong>java th1</strong></p>
<p>When you compile and run this program, you will get a output of</p>
<p><strong>0</strong></p>
<p><strong>0</strong></p>
<p>as shown in screen shot</p>
<p><img class="aligncenter" title="Compile and run the java program" src="http://completejavatutorial.com/wp-content/compileandrunthejavaprogram.JPG" alt="" width="403" height="304" /></p>
<p>Hows the result is 0,0</p>
<p>Here in this program, we have two variables as data members int a and int b. Another is the constructor paramertised variable int a and int b.</p>
<p>In the main method, we passed the value 10 and 20 (  <strong>new th1(10, 20).show();</strong>) to the respective varible of the constuctor paramter int a and int b.</p>
<p>Now in this statement: -</p>
<p><strong>a=a;<br />
b=b;</strong></p>
<p>the value of constructor int a is replaced by the data member int a.</p>
<p>the value of constructor int b is replaced by the data member int b.</p>
<p>So when the program is run, the output is shown as the defaut value of data members.</p>
<input id="gwProxy" type="hidden" />
<p><!--Session data--></p>
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden"/><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<strong>Share this Post</strong><small><a alt="" href="http://www.picturesurf.org/share-buttons/">[?]</a></small><div id="sharepost" style="padding-top:10px;" ><a href="mailto:?subject=Write a Program about THIS keyword in Java&amp;body=http://completejavatutorial.com/write-a-program-about-this-keyword-in-java/" target="_blank"><img src="http://www.picturesurf.org/img/shreml.png" alt="" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=http://completejavatutorial.com/write-a-program-about-this-keyword-in-java/" target="_blank"><img src="http://www.picturesurf.org/img/shrfb.png" alt="" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=http://completejavatutorial.com/write-a-program-about-this-keyword-in-java/ target="_blank"><img src="http://www.picturesurf.org/img/shrtwr.png" alt="" /></a>&nbsp;&nbsp;<a href="http://digg.com/submit?url=http://completejavatutorial.com/write-a-program-about-this-keyword-in-java/&amp;title=Write a Program about THIS keyword in Java&amp;bodytext=&amp;media=&amp;topic=" target="_blank"><img src="http://www.picturesurf.org/img/shrdig.png" alt="" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=http://completejavatutorial.com/write-a-program-about-this-keyword-in-java/&amp;title=Write a Program about THIS keyword in Java" target="_blank"><img src="http://www.picturesurf.org/img/shrdel.png" alt="" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://completejavatutorial.com/write-a-program-about-this-keyword-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>THIS keyword in Java Language</title>
		<link>http://completejavatutorial.com/this-keyword-in-java-language/</link>
		<comments>http://completejavatutorial.com/this-keyword-in-java-language/#comments</comments>
		<pubDate>Thu, 21 May 2009 13:06:13 +0000</pubDate>
		<dc:creator>gedet basumatary</dc:creator>
				<category><![CDATA[Keyword]]></category>
		<category><![CDATA[java language]]></category>
		<category><![CDATA[this]]></category>

		<guid isPermaLink="false">http://completejavatutorial.com/?p=26</guid>
		<description><![CDATA[Today we will talk about this keyword in Java Language. I will write some important points of the this keyword and will try to implement few points practically too. Before moving further you should know the meaning of the keyword. In every programming language including java, Keyword is defined as: -
Keyword is a reserved words [...]]]></description>
			<content:encoded><![CDATA[<p>Today we will talk about <strong>this</strong> keyword in Java Language. I will write some important points of the <strong>this</strong> keyword and will try to implement few points practically too. Before moving further you should know the meaning of the keyword. In every programming language including java, Keyword is defined as: -</p>
<p>Keyword is a reserved words which has a special meaning. There are 50 keywords and 3 literals in the java language.</p>
<p>Ok back to the point, the important points of the <strong>this</strong> keywords are: -</p>
<ol>
<li><strong>this</strong> always refers to current object.</li>
<li><strong>this</strong> keyword can be used to resolve ambiguity between local variables and data members.</li>
<li><strong>this</strong> keyword cannot be called within static context.</li>
<li><strong>this</strong> keyword can be used to called the constructor of the same class.</li>
</ol>
<input id="gwProxy" type="hidden" />
<p><!--Session data--></p>
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden"/><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<strong>Share this Post</strong><small><a alt="" href="http://www.picturesurf.org/share-buttons/">[?]</a></small><div id="sharepost" style="padding-top:10px;" ><a href="mailto:?subject=THIS keyword in Java Language&amp;body=http://completejavatutorial.com/this-keyword-in-java-language/" target="_blank"><img src="http://www.picturesurf.org/img/shreml.png" alt="" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=http://completejavatutorial.com/this-keyword-in-java-language/" target="_blank"><img src="http://www.picturesurf.org/img/shrfb.png" alt="" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=http://completejavatutorial.com/this-keyword-in-java-language/ target="_blank"><img src="http://www.picturesurf.org/img/shrtwr.png" alt="" /></a>&nbsp;&nbsp;<a href="http://digg.com/submit?url=http://completejavatutorial.com/this-keyword-in-java-language/&amp;title=THIS keyword in Java Language&amp;bodytext=&amp;media=&amp;topic=" target="_blank"><img src="http://www.picturesurf.org/img/shrdig.png" alt="" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=http://completejavatutorial.com/this-keyword-in-java-language/&amp;title=THIS keyword in Java Language" target="_blank"><img src="http://www.picturesurf.org/img/shrdel.png" alt="" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://completejavatutorial.com/this-keyword-in-java-language/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Why Java is called Java?</title>
		<link>http://completejavatutorial.com/why-java-is-called-java/</link>
		<comments>http://completejavatutorial.com/why-java-is-called-java/#comments</comments>
		<pubDate>Thu, 21 May 2009 02:25:59 +0000</pubDate>
		<dc:creator>gedet basumatary</dc:creator>
				<category><![CDATA[Java Questions and Answers]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Why Java is called Java?]]></category>

		<guid isPermaLink="false">http://completejavatutorial.com/?p=22</guid>
		<description><![CDATA[Very interesting question &#8220;why java is called java?&#8221; isn&#8217;t it?
When I was attending the class of Java, we are asked by the teacher. Why Java is called java? We don&#8217;t have answer to this question. Later the teacher explain us that:-
Once they were deciding on what to call it. They were at a coffee shop [...]]]></description>
			<content:encoded><![CDATA[<p>Very interesting question &#8220;why java is called java?&#8221; isn&#8217;t it?</p>
<p>When I was attending the class of Java, we are asked by the teacher. Why Java is called java? We don&#8217;t have answer to this question. Later the teacher explain us that:-</p>
<blockquote><p>Once they were deciding on what to call it. They were at a coffee shop drinking coffee, and somehow they thought of naming it <strong class="highlight">java</strong>, which <strong class="highlight">is</strong> another word for coffee. As coffee from JAVA island, Indonesia is so famous that sometimes coffee is itself called Java in US slang, the name was a good option for a cool and attractive name.</p></blockquote>
<p><span style="font-weight: bold;">Note: -</span> Java was originally named Oak, but was changed to Java, in hopes of drawing more interest to the new language.</p>
<p>This article explains how <strong class="highlight">Java</strong> got it&#8217;s name:<br />
<a class="t" rel="nofollow" href="http://www.javaworld.com/jw-10-1996/jw-10-javaname.html" target="_blank">http://www.javaworld.com/jw-10-1996/jw-10-javaname.html</a></p>
<input id="gwProxy" type="hidden"/><!--Session data--><br />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<strong>Share this Post</strong><small><a alt="" href="http://www.picturesurf.org/share-buttons/">[?]</a></small><div id="sharepost" style="padding-top:10px;" ><a href="mailto:?subject=Why Java is called Java?&amp;body=http://completejavatutorial.com/why-java-is-called-java/" target="_blank"><img src="http://www.picturesurf.org/img/shreml.png" alt="" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/share.php?u=http://completejavatutorial.com/why-java-is-called-java/" target="_blank"><img src="http://www.picturesurf.org/img/shrfb.png" alt="" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=http://completejavatutorial.com/why-java-is-called-java/ target="_blank"><img src="http://www.picturesurf.org/img/shrtwr.png" alt="" /></a>&nbsp;&nbsp;<a href="http://digg.com/submit?url=http://completejavatutorial.com/why-java-is-called-java/&amp;title=Why Java is called Java?&amp;bodytext=&amp;media=&amp;topic=" target="_blank"><img src="http://www.picturesurf.org/img/shrdig.png" alt="" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=http://completejavatutorial.com/why-java-is-called-java/&amp;title=Why Java is called Java?" target="_blank"><img src="http://www.picturesurf.org/img/shrdel.png" alt="" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://completejavatutorial.com/why-java-is-called-java/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
