public interface Foo {
String method();
}
public class Claaa {
public static void main(String[] args) {
Foo fooByIC = new Foo() {
@Override
public String method() {
return null;
}
};
}
Answer: Inner class