yes.I also got an error. Is it that the if static is used inside a nonstatic or static method , then its treated as error since static deals that it is not related with any instance of class.
Within a method, (whether static or non-static), the only modifier allowed is final. Any other modifiers like static, public, private, protected, etc will give compiler errors.