Multiple Choice Question

Quiz Guidelines



Given the following definitions and reference declarations:

interface I1 { }
interface I2 { }
class C1 implements I1 { }
class C2 implements I2 { }
class C3 extends C1 implements I2 { }
C1 o1;
C2 o2;
C3 o3;

Which of these statements are legal?

Select 3 options

A. class C4 extends C3 implements I1, I2 { }
B. o3 = o1;
C. o3 = o2;
D. I1 i1 = o3; I2 i2 = (I2) i1;
E. I1 b = o3;

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within!!!