Vidyalelo
Java Programming · Q29

Interfaces and Abstract Classes

Programming · Java Programming · question 29

Q29

What is the result of the following code snippet?abstract class MyAbstract static void myMethod() System.out.println("Static Method"); class MyClass extends MyAbstract public static void main(String[] args) MyAbstract.myMethod();

A.
MyClass
B.
Runtime exception
C.
Static Method
Answer
D.
Compilation error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board