Why an Anonymous class can't implement multiple interfaces directly? Simply because of syntax or there is another reason?
In there an internal issue why java anonymous classes cannot implement and subclass at the same time? Or is it just because the syntax? In there an internal issue why java anonymous classes cannot implement and subclass at the same time? I believe it is 99% due to syntactical reasons. Type parameters even support intersection types ( <T extends InterfaceX & InterfaceY> ) so I don't think such feature would introduce any contradictions or complications. An expression like new (InterfaceX & InterfaceY)() { ... } could for instance be compiled into something like interface InterfaceXandY extends