Have you tried compiling this -
public class Base
{
{
System.out.println( "We hit infinity!");
}
}
I am quoting from the JLS -
Class Body and Member Declarations
A class body may contain declarations of members of the class, that is, fields (�8.3) and methods (�8.4). A class body may also
contain static initializers (�8.5) and declarations of constructors (�8.6) for the class.
ClassBody:
{ ClassBodyDeclarationsopt }
ClassBodyDeclarations:
ClassBodyDeclaration
ClassBodyDeclarations ClassBodyDeclaration
ClassBodyDeclaration:
ClassMemberDeclaration
StaticInitializer
ConstructorDeclaration
ClassMemberDeclaration:
FieldDeclaration
MethodDeclaration
The scope of the name of a member declared in or inherited by a class type is the entire body of the class type declaration.
You can have a look at
http://java.sun.com/docs/books/jls/html/8.doc.html#15372 [This message has been edited by Ankur (edited July 03, 2000).]