Multiple Choice Question

Quiz Guidelines

 

QID: 
48
Validated against: 
java8
Question: 

Given:

interface I {
}

class A implements I {
	
	public void m(){
		
	}
}

abstract class B extends A { //line 1

	public abstract void m(); //line 2
}

class C extends B { //line 3
	
}

 

Select 1 option

A. Class will compile successfully

B. Compilation will fail at line marked as line 1.

C. Compilation will fail at line marked as line 2.

D. Compilation will fail at line marked as line 3.

Q&A Set: