this keyword is used to refer to a class variable or method. When you declare static on a method the variable or method can be called without needing to instantiate an object of a class. Therefore this keyword is not allowed because your static method is not associated with any objects.