No, we cannot declare an interface method static in java because interface methods are abstract by default, and static and abstract keywords can’t be used together.
Java interview questions on interface
- What is interface in java?
- Can we declare an interface method static in java?
- Can an interface be declared final in java?
- What is marker interface?
- How to create custom marker interface?
- What is difference between abstract class and interface in java?
Please follow and like us: