<?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: Synthetic variable or method in Java</title>
	<atom:link href="http://www.techartifact.com/blogs/2010/03/synthetic-variable-or-method-in-java.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.techartifact.com/blogs/2010/03/synthetic-variable-or-method-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: tushar</title>
		<link>http://www.techartifact.com/blogs/2010/03/synthetic-variable-or-method-in-java.html/comment-page-1#comment-2036</link>
		<dc:creator>tushar</dc:creator>
		<pubDate>Tue, 03 Jan 2012 09:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=940#comment-2036</guid>
		<description>sir i have a question , 

class A
{
 public method()
 {
 }
}

class B extends A
{
 private  method ()
 {
 }
}

sir why this is wrong , plz implement this thing in this real world , because i think java is our environment . so when A is creating a method for him as a public and than B is using that method as a private than what is the problem , B is using that method only for himself .</description>
		<content:encoded><![CDATA[<p>sir i have a question , </p>
<p>class A<br />
{<br />
 public method()<br />
 {<br />
 }<br />
}</p>
<p>class B extends A<br />
{<br />
 private  method ()<br />
 {<br />
 }<br />
}</p>
<p>sir why this is wrong , plz implement this thing in this real world , because i think java is our environment . so when A is creating a method for him as a public and than B is using that method as a private than what is the problem , B is using that method only for himself .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JT</title>
		<link>http://www.techartifact.com/blogs/2010/03/synthetic-variable-or-method-in-java.html/comment-page-1#comment-1417</link>
		<dc:creator>JT</dc:creator>
		<pubDate>Fri, 06 May 2011 15:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=940#comment-1417</guid>
		<description>I think the VM Spec is wrong about:

&quot; A non-private final synthetic method which grants access to a private member or constructor has a name of the form access$N, where N is a decimal numeral.&quot;

It is NOT true for private constructors. (at least with my latest javac compiler).

When i write:
class Outer{
 Inner i = new Inner();
 private class Inner
 {
   private Inner(){};
 }
}

Javap for the Inner class shows two constructors:
 // the one i declared private 
 private Outer$Inner(Synthetics.Outer); 
 // a synthetic package-private constructor with diff prams
 Outer$Inner(Synthetics.Outer, Synthetics.Outer$1); 

(The compiler also made a synthetic class Outer$1 which has no 
methods which (apparently) is only used to give the new package-private constructor a unique signature)</description>
		<content:encoded><![CDATA[<p>I think the VM Spec is wrong about:</p>
<p>&#8221; A non-private final synthetic method which grants access to a private member or constructor has a name of the form access$N, where N is a decimal numeral.&#8221;</p>
<p>It is NOT true for private constructors. (at least with my latest javac compiler).</p>
<p>When i write:<br />
class Outer{<br />
 Inner i = new Inner();<br />
 private class Inner<br />
 {<br />
   private Inner(){};<br />
 }<br />
}</p>
<p>Javap for the Inner class shows two constructors:<br />
 // the one i declared private<br />
 private Outer$Inner(Synthetics.Outer);<br />
 // a synthetic package-private constructor with diff prams<br />
 Outer$Inner(Synthetics.Outer, Synthetics.Outer$1); </p>
<p>(The compiler also made a synthetic class Outer$1 which has no<br />
methods which (apparently) is only used to give the new package-private constructor a unique signature)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jafar</title>
		<link>http://www.techartifact.com/blogs/2010/03/synthetic-variable-or-method-in-java.html/comment-page-1#comment-1229</link>
		<dc:creator>Jafar</dc:creator>
		<pubDate>Thu, 09 Sep 2010 17:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=940#comment-1229</guid>
		<description>Thanks a lot for what you have posted.
I am new to java and i came across synthetic variable in my IDE. thats the reaso i was lookint for such articles. 

   As is said I am new to java development I didn&#039;t undrstood the concept properly. I will be very greatfull if any one elabrate this article a bit more and make a new man in java understand this concept better.

Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for what you have posted.<br />
I am new to java and i came across synthetic variable in my IDE. thats the reaso i was lookint for such articles. </p>
<p>   As is said I am new to java development I didn&#8217;t undrstood the concept properly. I will be very greatfull if any one elabrate this article a bit more and make a new man in java understand this concept better.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chaitanya</title>
		<link>http://www.techartifact.com/blogs/2010/03/synthetic-variable-or-method-in-java.html/comment-page-1#comment-1134</link>
		<dc:creator>Chaitanya</dc:creator>
		<pubDate>Wed, 07 Apr 2010 12:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=940#comment-1134</guid>
		<description>Hi Vinay,
   Thanks a lot for sharing such a valuable concept with us. After reading your article, now I got a complete picture of the synthetic method  / variable in java. kindly Keep posting articles on more concepts</description>
		<content:encoded><![CDATA[<p>Hi Vinay,<br />
   Thanks a lot for sharing such a valuable concept with us. After reading your article, now I got a complete picture of the synthetic method  / variable in java. kindly Keep posting articles on more concepts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PimpThisBlog.com</title>
		<link>http://www.techartifact.com/blogs/2010/03/synthetic-variable-or-method-in-java.html/comment-page-1#comment-1119</link>
		<dc:creator>PimpThisBlog.com</dc:creator>
		<pubDate>Sat, 20 Mar 2010 06:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.techartifact.com/blogs/?p=940#comment-1119</guid>
		<description>&lt;strong&gt;Synthetic variable or method in Java &#124; TechArtifact...&lt;/strong&gt;

Thank you for submitting this cool story - Trackback from PimpThisBlog.com...</description>
		<content:encoded><![CDATA[<p><strong>Synthetic variable or method 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>

