can someone tell me why this would compile?? I am doing a mock
test and it says that is fine, but doesn't it basically create a method with no return type and using the keyword "static"? I guess I would think that is breaking at least 2 rules.
public class Static
{
static
{
int x = 5;
}
}