Originally posted by Antti Barck:
Helo!
Interface must be implemented, in your case the minimal implementation is:
Runnable a = new Runnable() { public void run() { } };
You cannot instantiate an interface
But there is a way to do it using anonymous class.Though its not exactly an instantiation, it is just that the anonymous class will have the name of the interface which it implements
[This message has been edited by Ragu Sivaraman (edited August 22, 2001).]
[This message has been edited by Ragu Sivaraman (edited August 22, 2001).]