This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi, Anonymous class is a local member of a method or constructor. It is not a class level member. Just as a local method variable cannot be static a anonymous class reference cannot be declared static.
Just Remember one very important point that static construct i.e. static variable,initializer,method etc are top level construct so they can appear at toplevel class scope or nested within a static construct. Hope it helps
<i>--Agrah Upadhyay--</i><br />Final Year B.Tech SCJP,SCWCD,SCBCD <br /> <br /><b>Now since the real test for any choice is having to make the same choice again,knowing full well what it might cost.</b>-Oracle