InterviewSolution
Saved Bookmarks
| 1. |
What Will Be The Output Of The Following Program? Interface One { String S = "final"; String Methodone(); } Interface Two { String Methodone(); } Abstract Class Three { String S = "not Final"; Public Abstract String Methodone(); } Class Four Extends Three Implements One, Two { Public String Methodone() { String S = Super.s + One.s; Return S; } } Public Class Mainclass { Public Static Void Main(string[] Args) { Four Four = New Four(); System.out.println(four.methodone()); One One = Four; System.out.println(one.s); } } |
|
Answer» NOT FINALFINAL FINAL NOT FINALFINAL FINAL |
|