Email address:
Password:
SCJP/OCPJP 1.6 certification
Practice Exams and Training

interface I{}

class A{}

class B implements I{}

class C extends A{}

class D{}

final class E{}

class InstOf{

public static void main(String args[]){

Boolean b;

//Insert Here

}

}

Which of the following statements CANNOT be inserted into the main method independently so the program will compile? (Choose one).

Ab=new A() instanceof I;

Bb=new B() instanceof I;

Cb=new C() instanceof I;

Db=new D() instanceof I;

Eb=new E() instanceof I;

Fb=new A[4] instanceof I[];

Gb=new D[4] instanceof I[];

Hb=new I[4] instanceof Object[];

Ib=new A[]{new A(),new C()} instanceof I[];

This does not seem to be the question # 13.

Sure, we can discuss this question anyway, but can you please tell me where you got this question from?

ExamLab © 2008 - 2024