1.

Can You Identify The Error In The Below Code? Interface A { Void Methoda(); } Class B Implements A { Public Void Methoda() { Interface C { Int I = 123; } } }

Answer»

INTERFACES can’t be LOCAL MEMBERS of a METHOD.

Interfaces can’t be local members of a method.



Discussion

No Comment Found

Related InterviewSolutions