Intermediate
Java
Q77 / 100
What does the default keyword in a Java 8 interface do?
Correct! Well done.
Incorrect.
The correct answer is B) Provides a method implementation directly in the interface so implementing classes need not override it
B
Correct Answer
Provides a method implementation directly in the interface so implementing classes need not override it
Explanation
Default methods allow new methods to be added to interfaces without breaking existing implementations.
Progress
77/100