Vidyalelo
Java Programming · Q25

Interfaces and Abstract Classes

Programming · Java Programming · question 25

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
Answer
B.
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