This is related to final interface in java. Among the discussion there was that the concept of final in relation to interfaces is ambiguous. Would a final interface mean that it can not have subinterfaces? Would it mean that it can not have implementations?
This question is the first: can you write an final interface such that the compiler will prevent you from implementing it?
As I will show, it is possible to implement the interface above using a proxy. The more meaningful question is, why would you try to make a unimplementable interface? Even as a philosophical point, it seems rather shallow.
This won’t give an error at compile or run-time, and it shows you can make a real instance of this interface with both methods callable.