Found this question here at stack overflow: Can you call the parent interface's default method from an interface that subclasses that interface?
new BFunctionalInterface(){
@Override
public void doWork() {
}}.doSomeWork();
System.out.println("WUK WUK");
I understand its an anonymous class.But what does calling doSomeWork with a "." inside doWork mean?Does it call the implementation of A or B?