Wednesday, July 28, 2010

Can an Interface have an inner class?

Yes.
 public interface abc
{
static int i=0; void dd();
class a1
{
a1()
{
int j;
System.out.println("inside");
};
public static void main(String a1[])
{
System.out.println("in interfia");
}
}
}

No comments:

Post a Comment