<?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: Anonymous Classes in Java</title>
	<atom:link href="http://www.techartifact.com/blogs/2009/08/anonymous-classes-in-java.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.techartifact.com/blogs/2009/08/anonymous-classes-in-java.html</link>
	<description>Latest tip and information on Java and Oracle ADF</description>
	<lastBuildDate>Thu, 09 Feb 2012 07:11:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Anonymus</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-classes-in-java.html/comment-page-1#comment-2170</link>
		<dc:creator>Anonymus</dc:creator>
		<pubDate>Sun, 29 Jan 2012 09:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=865#comment-2170</guid>
		<description>too good.</description>
		<content:encoded><![CDATA[<p>too good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pravin Jain</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-classes-in-java.html/comment-page-1#comment-1900</link>
		<dc:creator>Pravin Jain</dc:creator>
		<pubDate>Thu, 24 Nov 2011 06:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=865#comment-1900</guid>
		<description>The initMethod above should declare a return type of Object, and should add the return this at the end.</description>
		<content:encoded><![CDATA[<p>The initMethod above should declare a return type of Object, and should add the return this at the end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pravin Jain</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-classes-in-java.html/comment-page-1#comment-1899</link>
		<dc:creator>Pravin Jain</dc:creator>
		<pubDate>Thu, 24 Nov 2011 05:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=865#comment-1899</guid>
		<description>The anonymous class cannot always access the static members of the enclosing class. This would happen when an anonymous class is defined in a static context, eg. in a static method or the static block.
Also anonymous class can use constructor of super class to pass parameters at runtime, and we have a workaround for initializing and passing parameters at creating time.
eg.
String someName = &quot;some name&quot;;
Object obj = new Object() {
          String name;
          public init(String s) {
              this.name = s;
          }
      }.init(someName);

In the above example, instead of Object, you could use any other appropriate super-class.</description>
		<content:encoded><![CDATA[<p>The anonymous class cannot always access the static members of the enclosing class. This would happen when an anonymous class is defined in a static context, eg. in a static method or the static block.<br />
Also anonymous class can use constructor of super class to pass parameters at runtime, and we have a workaround for initializing and passing parameters at creating time.<br />
eg.<br />
String someName = &#8220;some name&#8221;;<br />
Object obj = new Object() {<br />
          String name;<br />
          public init(String s) {<br />
              this.name = s;<br />
          }<br />
      }.init(someName);</p>
<p>In the above example, instead of Object, you could use any other appropriate super-class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Rob</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-classes-in-java.html/comment-page-1#comment-1897</link>
		<dc:creator>John Rob</dc:creator>
		<pubDate>Wed, 23 Nov 2011 08:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=865#comment-1897</guid>
		<description>This is one of the best articles I read online. No crap, just useful information. Very well presented. Its really helpful for beginner as well as developer. Check this link too it also having nice collection of java interview question.

http://www.mindstick.com/Interview
/1140/What%20is%20Anonymous%20class%20in%20java

Thanks Everyone for sharing  your nice post with us.</description>
		<content:encoded><![CDATA[<p>This is one of the best articles I read online. No crap, just useful information. Very well presented. Its really helpful for beginner as well as developer. Check this link too it also having nice collection of java interview question.</p>
<p><a href="http://www.mindstick.com/Interview" rel="nofollow">http://www.mindstick.com/Interview</a><br />
/1140/What%20is%20Anonymous%20class%20in%20java</p>
<p>Thanks Everyone for sharing  your nice post with us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ritu ranjan</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-classes-in-java.html/comment-page-1#comment-1474</link>
		<dc:creator>ritu ranjan</dc:creator>
		<pubDate>Sat, 30 Jul 2011 18:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=865#comment-1474</guid>
		<description>is annonymous class can only override  metho or we can declare method inside it?</description>
		<content:encoded><![CDATA[<p>is annonymous class can only override  metho or we can declare method inside it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pravin Jain</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-classes-in-java.html/comment-page-1#comment-960</link>
		<dc:creator>Pravin Jain</dc:creator>
		<pubDate>Sun, 23 Aug 2009 05:54:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=865#comment-960</guid>
		<description>&quot;Instead of passing arguments to a constructor, your inner class methods can reach out and grab what they need directly from local variables in the enclosing method.&quot;

FYI local variables from the enclosing method can be accessed from the methods of the anonymous class only if these are final vairables.</description>
		<content:encoded><![CDATA[<p>&#8220;Instead of passing arguments to a constructor, your inner class methods can reach out and grab what they need directly from local variables in the enclosing method.&#8221;</p>
<p>FYI local variables from the enclosing method can be accessed from the methods of the anonymous class only if these are final vairables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stewart Smith</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-classes-in-java.html/comment-page-1#comment-943</link>
		<dc:creator>Stewart Smith</dc:creator>
		<pubDate>Thu, 20 Aug 2009 09:44:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=865#comment-943</guid>
		<description>The bug you have here is that you don&#039;t create and start a thread.</description>
		<content:encoded><![CDATA[<p>The bug you have here is that you don&#8217;t create and start a thread.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-classes-in-java.html/comment-page-1#comment-937</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Tue, 18 Aug 2009 06:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=865#comment-937</guid>
		<description>Wow! Anonymous classes! Did you wake up yesterday after decade being sleeping?
FYI you can pass parameters in constructor of anonymous class, if appropriate super constuctor exists.</description>
		<content:encoded><![CDATA[<p>Wow! Anonymous classes! Did you wake up yesterday after decade being sleeping?<br />
FYI you can pass parameters in constructor of anonymous class, if appropriate super constuctor exists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PimpThisBlog.com</title>
		<link>http://www.techartifact.com/blogs/2009/08/anonymous-classes-in-java.html/comment-page-1#comment-928</link>
		<dc:creator>PimpThisBlog.com</dc:creator>
		<pubDate>Mon, 17 Aug 2009 11:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=865#comment-928</guid>
		<description>&lt;strong&gt;anonymous-classes-in-java &#124; techartifact...&lt;/strong&gt;

Thank you for submitting this cool story - Trackback from PimpThisBlog.com...</description>
		<content:encoded><![CDATA[<p><strong>anonymous-classes-in-java | techartifact&#8230;</strong></p>
<p>Thank you for submitting this cool story &#8211; Trackback from PimpThisBlog.com&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

