Can an Interface have an inner class?

Q

Can an Interface have an inner class?

✍: Guest

A

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"); } } }

2013-02-04, 1967👍, 0💬