sounds like a static initialization block on the class.
You can use that block to initialize all static variables of the class. However, I had never seen the "public" qualifier before it.
Try this in Java so you see the order of invocation
public class StaticTest {
{
System.out.println("Anonymous Block.");
}
static {
//probably equivalent to that public {} you see on your code.
System.out.println("Static Block.");
}
public StaticTest() {
System.out.println("Constructor.");
}
public static void main(String[] args) {
StaticTest test = new StaticTest() {
{
System.out.println("Anonymous block in instance.");
}
};
}
}
when you execute this it prints the following:
> $ java StaticTest
> Static Block.
> Anonymous Block.
> Constructor.
> Anonymous block in instance.