Yes,an inner class may be built an Interface.
public interface xyz
{
static int p=0;
void m();
class c
{
c()
{
int q;
System.out.println(“inside”);
}
public static void main(String c[])
{
System.out.println(“inside “);
}
};
}
Technical Interview Questions
Yes,an inner class may be built an Interface.
public interface xyz
{
static int p=0;
void m();
class c
{
c()
{
int q;
System.out.println(“inside”);
}
public static void main(String c[])
{
System.out.println(“inside “);
}
};
}