A
Q. 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();
}
}
- Correct Answer - Option(A)
- Views: 10
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.