As the official statement about virtual extension methods (default methods) states:
The purpose of virtual extension methods (default methods) is to enable interfaces to be evolved in a compatible manner after their initial publication.”
Can I see some good examples in the JDK for this in action?
So far I've found in the java.util.Collection
interface and several others but it would be nice to have a more thorough list.
edit: I was not looking for whether using default methods are safe or not (since I've already read the question which is linked). I was looking for practical examples in the JDK.