(Choose 1 answer)
Given the following Java code:
class A { void dojob1() {}}
A. a2.dojob2():
// 3 class Robot {
// 4
B. (B)a2.dojob2():
public static void main(String[] args){// 6
C. ((B)a2).dojob2():
A a1 = new A();A a2 = new B();
D. None of the above statements will compile
// 1
class B extends A { void dojob2() {}}
// insert some code here
117
// 8
}
// 10
11
// 5
//9
}
B b1 = new B();
//-
Which of the following, inserted at line 9, will compile?