Question OOP-ABS-0065
HardJava 8 added default methods to interfaces. What problem did this mainly solve?
- A.
Allowing interfaces to have instance fields
- B.
Adding new methods to widely used interfaces (such as Collection.stream()) without breaking every existing implementation
- C.
Sign up free to see the answer and a step-by-step explanation.