Answer:
It was written in the question the following:
static public char ch = // wrong!
The word "public" must come before "static", and since this is not the case here, the above statement is NOT a legal declaration of a class variable.
public static char ch =; //