@TimCastelijns releated to life-cycles. for a case like : ClassA is event dispatcher. And if ClassB start ClassA and wants to get events, ClassB can register event listener (using an interface from ClassA) using anonymous inner class, or ClassB can implement that interface and register itself as event listener.
Also assume that ClassB keeps a reference to this listener using weak-reference.
In the latter case (ClassB implements the interface), the listener will be alive as long as ClassB, while in the case where ClassB registers a anonymous inner class as listener, the listener, having onl…