How does the default method interact with method resolution in Java?
If a class implements two interfaces with conflicting default methods, the class will inherit both versions of the method and won't need to choose one.
Thatâ€™s incorrect. The class cannot inherit both conflicting default methods and must resolve the conflict by overriding the method.
Can you explain how the Java compiler resolves method conflicts in this case?