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