Java · Easy
What are default and static methods in interfaces? Why were they introduced?
JavaOOPInterfacesJava 8+
Answer preview
Default methods — Methods with a body declared using the default keyword. Implementing classes inherit them but can override. Purpose: API evolution — add new methods to existing interfaces without breaking all implementations.…