Can a static method be abstract?
The abstract keyword cannot be applied to static method declarations. The compiler will reject the class with the error “illegal combination of modifiers”. However, an abstract class can have static variables and methods, which can be accessed directly using the standard dot notation, e.g. AbstractExample.staticMethod(). It follows that static methods must be concrete. Actions: Follow-up, clarify or correct this answer. Submit a new question.
The abstract keyword cannot be applied to static method declarations. The compiler will reject the class with the error “illegal combination of modifiers”. However, an abstract class can have static variables and methods, which can be accessed directly using the standard dot notation, e.g. AbstractExample.staticMethod(). It follows that static methods must be concrete. Actions: Follow-up or correct this answer. Submit a new question.