Vidyalelo
Java Programming · Q16

Interfaces and Abstract Classes

Programming · Java Programming · question 16

Q16

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

A.
Runtime exception
B.
Implementation
Answer
C.
MyClass
D.
None of these

Answer: Option B

Solution

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