functional-interface
@FunctionalInterface
public interface MyFunctionalInterface {
void hello(); // μΆμ λ©μλ
}@FunctionalInterface // compile error -> No target method found
public interface MyFunctionalInterface {
default void hello() {}
}
@FunctionalInterface // compile error -> No target method found
public interface MyFunctionalInterface<T> {
boolean equals(Object obj);
}
λνμ μΈ ν¨μν μΈν°νμ΄μ€
μ°Έκ³
Last updated