Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavafunctional interfacesSingle-choice MCQ

What does this code do?

interface I1 { default int f() { return 1; } }\ninterface I2 { default int f() { return 2; } }\nclass C implements I1, I2 {}\nnew C().f();