According to Nutshell,
"...an anonymous class behaves just like a local class, and is distinguished from a local class merely in the syntax used to define and instantiate it."