1.

Can You Identify The Error In The Below Code? Interface X { Void Methodx(); } Interface Y Extends X { Void Methody(); } Class Z Implements Y { Public Void Methody() { System.out.println("method Y"); } }

Answer»

CLASS Z MUST IMPLEMENT methodX() ALSO.

Class Z must implement methodX() also.



Discussion

No Comment Found

Related InterviewSolutions