Can an Interface have an inner class?
Java Interview Questions and Answers (part 2)
(Continued from previous question...)
362. 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("in interfia"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }
(Continued on next question...)
Other Interview Questions