Monday, April 16, 2012

Is it possible to create an object for an interface in java?

In java ,an interface contains only the method type, name and parameters. The actual implementation is done in a class that implements it. Then how is it possible to create an instance of a interface and use it as if it were a class object. There are many such interfaces for eg see this.

No comments:

Post a Comment