Q25
What is the result of the following code snippet?interface MyInterface static void myMethod() System.out.println("Static Method"); class MyClass implements MyInterface public static void main(String[] args) MyInterface.myMethod();
A.
Static Method
AnswerB.
Compilation error
C.
Runtime exception
D.
MyClass
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board