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

What is true about a custom interface annotated with @FunctionalInterface that declares one abstract method plus a public method whose signature matches a public method of java.lang.Object?

@FunctionalInterface interface MyFn { int apply(int x); String toString(); }