Can an interface have default methods in Java?
Yes, interfaces can have default methods, but they must provide a body for those methods.
You're right that default methods must have a body, but it's important to mention that they can also be overridden by implementing classes.
Can you clarify how overriding works with default methods in an implementing class?