is it possible to create object for interface without implementing this by any of the classes in jav

Posted by Jothi on Stack Overflow See other posts from Stack Overflow or by Jothi
Published on 2010-03-12T10:36:35Z Indexed on 2010/03/12 10:47 UTC
Read the original article Hit count: 186

Filed under:

Itest is an Interface. here i mentioned like new Itest(). Then is it means that i can create object for interface?

public interface Itest {


}
static final Itest s = new Itest(){
}; 

It is just like, we could create object for interface without any class implement the interface.

© Stack Overflow or respective owner

Related posts about interface