What is the purpose of default methods in Java interfaces introduced in Java 8?
Default methods allow interfaces to have method implementations, which enables backward compatibility by adding new methods to interfaces without breaking the existing code.
Good job! You've correctly explained the main purpose of default methods.
Can you provide an example where default methods are particularly useful in maintaining backward compatibility in a large codebase?