You can not instantiate Interface in any case. And the example is just anonymous class and it looks like you are initiating Interface.