1.

Can You Find Out The Errors In The Following Code? Interface A { { System.out.println("interface A"); } Static { System.out.println("interface A"); } }

Answer»

INTERFACES can’t have INITIALIZERS.

Interfaces can’t have initializers.



Discussion

No Comment Found

Related InterviewSolutions