Given:
What is the result?
Given:
What is the result?
When a class implements two interfaces that contain default methods with the same name and parameters, the class must override the default method to resolve the conflict. In this case, the MyClass class overrides the sayHi() method. So, when obj.sayHi() is called, it invokes the overridden method in MyClass, which prints 'Hi MyClass'.
Agree. It was tested
D is the answer.
Answer is D.
Answer is D. You need to override sayHi() since you inherited the same sayHi() method from the 2 interface
D. tested