<?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: When can an object reference be cast to a Java interface reference?</title>
	<atom:link href="http://javapapers.com/core-java/abstract-and-interface-core-java-2/when-can-an-object-reference-be-cast-to-a-java-interface-reference/feed/" rel="self" type="application/rss+xml" />
	<link>http://javapapers.com/core-java/abstract-and-interface-core-java-2/when-can-an-object-reference-be-cast-to-a-java-interface-reference/</link>
	<description>Blog on core java, servlets, jsp and design patterns.</description>
	<lastBuildDate>Mon, 06 Feb 2012 18:56:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Govardhan</title>
		<link>http://javapapers.com/core-java/abstract-and-interface-core-java-2/when-can-an-object-reference-be-cast-to-a-java-interface-reference/#comment-9754</link>
		<dc:creator>Govardhan</dc:creator>
		<pubDate>Sat, 04 Feb 2012 14:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=16#comment-9754</guid>
		<description>Two methods may not have the same name and argument list but different return types.


In method overloading function name will be same but the argument count or type or order must vary. They can have different return type also.

i don&#039;t understand d 1st xplanation.. can any1 pls xplain me briefly wit a small eg.. thank u</description>
		<content:encoded><![CDATA[<p>Two methods may not have the same name and argument list but different return types.</p>
<p>In method overloading function name will be same but the argument count or type or order must vary. They can have different return type also.</p>
<p>i don&#8217;t understand d 1st xplanation.. can any1 pls xplain me briefly wit a small eg.. thank u</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Govardhan</title>
		<link>http://javapapers.com/core-java/abstract-and-interface-core-java-2/when-can-an-object-reference-be-cast-to-a-java-interface-reference/#comment-9753</link>
		<dc:creator>Govardhan</dc:creator>
		<pubDate>Sat, 04 Feb 2012 14:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=16#comment-9753</guid>
		<description>wat are d restrictions on method overloading ??
i get to c two different answers everywhere.. ?? r both true or s only 1 true ??</description>
		<content:encoded><![CDATA[<p>wat are d restrictions on method overloading ??<br />
i get to c two different answers everywhere.. ?? r both true or s only 1 true ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Govardhan</title>
		<link>http://javapapers.com/core-java/abstract-and-interface-core-java-2/when-can-an-object-reference-be-cast-to-a-java-interface-reference/#comment-9746</link>
		<dc:creator>Govardhan</dc:creator>
		<pubDate>Sat, 04 Feb 2012 06:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=16#comment-9746</guid>
		<description>The post of abhhishek seems satisfying !! thanks abhishek...</description>
		<content:encoded><![CDATA[<p>The post of abhhishek seems satisfying !! thanks abhishek&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Govardhan</title>
		<link>http://javapapers.com/core-java/abstract-and-interface-core-java-2/when-can-an-object-reference-be-cast-to-a-java-interface-reference/#comment-9745</link>
		<dc:creator>Govardhan</dc:creator>
		<pubDate>Sat, 04 Feb 2012 06:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=16#comment-9745</guid>
		<description>moreover that class outer doen&#039;t implement tat interface too... !!!</description>
		<content:encoded><![CDATA[<p>moreover that class outer doen&#8217;t implement tat interface too&#8230; !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Govardhan</title>
		<link>http://javapapers.com/core-java/abstract-and-interface-core-java-2/when-can-an-object-reference-be-cast-to-a-java-interface-reference/#comment-9744</link>
		<dc:creator>Govardhan</dc:creator>
		<pubDate>Sat, 04 Feb 2012 06:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=16#comment-9744</guid>
		<description>interface Sample {
public void method();
}

class Outer {
Sample s = new Sample() {
public void method() {
System.out.println(“Inner class”);
}
};
}
I DON&#039;T UNDERSTAND THIS, AS A BEGINNER.... U SUDDENLY JUMP INTO A CLASS, USE THE INTERFACE NAME AND CREATE A REFERENCE AND HOW COME U SAY TAT DOESN&#039;T BREAK THE RULE OF INSTANTIATING AN INTERFACE ????</description>
		<content:encoded><![CDATA[<p>interface Sample {<br />
public void method();<br />
}</p>
<p>class Outer {<br />
Sample s = new Sample() {<br />
public void method() {<br />
System.out.println(“Inner class”);<br />
}<br />
};<br />
}<br />
I DON&#8217;T UNDERSTAND THIS, AS A BEGINNER&#8230;. U SUDDENLY JUMP INTO A CLASS, USE THE INTERFACE NAME AND CREATE A REFERENCE AND HOW COME U SAY TAT DOESN&#8217;T BREAK THE RULE OF INSTANTIATING AN INTERFACE ????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://javapapers.com/core-java/abstract-and-interface-core-java-2/when-can-an-object-reference-be-cast-to-a-java-interface-reference/#comment-9241</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 12 Jan 2012 06:21:56 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=16#comment-9241</guid>
		<description>nice one.....</description>
		<content:encoded><![CDATA[<p>nice one&#8230;..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

