1.

What Will Be The Output Of The Below Program? Interface X { Void Method(); } Class Y { Public Void Method() { System.out.println("class Y"); } } Class Z Extends Y Implements X { } Public Class Mainclass { Public Static Void Main(string[] Args) { X X = New Z(); X.method(); } }

Answer»

CLASS Y

CLASS Y



Discussion

No Comment Found

Related InterviewSolutions