<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: @Override annotation</title>
	<atom:link href="http://www.penguin-inn.com/blog/2009/03/11/override_annotation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.penguin-inn.com/blog/2009/03/11/override_annotation/</link>
	<description>Travel, Investment, IT, Life</description>
	<lastBuildDate>Thu, 08 Jul 2010 10:12:28 -0400</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Thomas</title>
		<link>http://www.penguin-inn.com/blog/2009/03/11/override_annotation/#comment-51994</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Thu, 07 May 2009 22:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.penguin-inn.com/blog/?p=100#comment-51994</guid>
		<description>Class A is not overriding the void method1(); method signature but you are implementing it. Effectively you are overriding the implementation. Even this would not be a override

abstract class K {
  public abstract void method1();
}

class A extends K {
  public void method1() {
  }
}

Because you are implementing an abstract method

If you were to override it you would have 

abstract class K {
  public void method1() {
  }
}

class A extends K {
  @Override
  public void method1() {
  }
}</description>
		<content:encoded><![CDATA[<p>Class A is not overriding the void method1(); method signature but you are implementing it. Effectively you are overriding the implementation. Even this would not be a override</p>
<p>abstract class K {<br />
  public abstract void method1();<br />
}</p>
<p>class A extends K {<br />
  public void method1() {<br />
  }<br />
}</p>
<p>Because you are implementing an abstract method</p>
<p>If you were to override it you would have </p>
<p>abstract class K {<br />
  public void method1() {<br />
  }<br />
}</p>
<p>class A extends K {<br />
  @Override<br />
  public void method1() {<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Penguin</title>
		<link>http://www.penguin-inn.com/blog/2009/03/11/override_annotation/#comment-50967</link>
		<dc:creator>Penguin</dc:creator>
		<pubDate>Sun, 22 Mar 2009 23:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.penguin-inn.com/blog/?p=100#comment-50967</guid>
		<description>Maybe you are right, Java 5 thinks the interface is different from class, so implementation of the interface method is not consider overriding super class.</description>
		<content:encoded><![CDATA[<p>Maybe you are right, Java 5 thinks the interface is different from class, so implementation of the interface method is not consider overriding super class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: szehau</title>
		<link>http://www.penguin-inn.com/blog/2009/03/11/override_annotation/#comment-50858</link>
		<dc:creator>szehau</dc:creator>
		<pubDate>Fri, 20 Mar 2009 06:10:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.penguin-inn.com/blog/?p=100#comment-50858</guid>
		<description>I&#039;m not sure why there is difference between Java5 and Java6. From what I think is when a class implements a interface, all methods in the interface must be defined in the class else you will get compile time error. So it doesn&#039;t matter whether you put &quot;@Override&quot; or not for the interface&#039;s methods.

You say the Javadoc says &quot;Indicates that a method declaration is intended to override a method declaration in a superclass&quot;. Maybe Java5 think a interface is an interface and is difference from class. While Java6 maybe simply ignore the checking as it is not necessary to &quot;@Override&quot; an interface method as it is a must for a class to define it.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure why there is difference between Java5 and Java6. From what I think is when a class implements a interface, all methods in the interface must be defined in the class else you will get compile time error. So it doesn&#8217;t matter whether you put &#8220;@Override&#8221; or not for the interface&#8217;s methods.</p>
<p>You say the Javadoc says &#8220;Indicates that a method declaration is intended to override a method declaration in a superclass&#8221;. Maybe Java5 think a interface is an interface and is difference from class. While Java6 maybe simply ignore the checking as it is not necessary to &#8220;@Override&#8221; an interface method as it is a must for a class to define it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: discount shower curtains</title>
		<link>http://www.penguin-inn.com/blog/2009/03/11/override_annotation/#comment-50718</link>
		<dc:creator>discount shower curtains</dc:creator>
		<pubDate>Sun, 15 Mar 2009 06:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.penguin-inn.com/blog/?p=100#comment-50718</guid>
		<description>hey thanks for commenting on my blog, every little bit helps. take care.</description>
		<content:encoded><![CDATA[<p>hey thanks for commenting on my blog, every little bit helps. take care.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
