Tuesday, March 10, 2009

Can an Interface have an inner class? (CoreJava)

Question :Can an Interface have an inner class? (CoreJava)
Answer :Yes public interface abc { static int i=0; void dd(); class a1 { a1() { int j;
System.out.println("in interfia"); }; public static void main(String a1[])
{ System.out.println("in interfia"); } } }

No comments: