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

Given these two functional interface declarations, which statement is true?

@FunctionalInterface interface A { String f(String s); boolean equals(Object o); } @FunctionalInterface interface B { String f(String s); default String g() { return "x"; } static String h() { return "y"; } }