I\'ve been examining the Java Language Specification here (instead I should be out having a beer) and I am curious about what a method can contain. The specification states a me
An example for a block with an inner class declaration:
public class Test { static { class C {} C c = new C(); } }
Although I doubt you'll find a use case...