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.
It sounds like what you are looking for is anonymous classes.
They are most commonly used something like this: