In some language (like C++) you can declare a static variable in a method (whether static or otherwise).
The variable is effectively defined at class level, but hidden outside of the method.
This feature was not incorporated into Java, Probably because it doesn't really help, and makes code harder to follow.
The closest you can come to that in Java is:
class C {
private static int i=0; // This is allowed
public static void get() {
}
}