Multiple Choice Question

Quiz Guidelines

 

QID: 
34
Validated against: 
java8
Question: 

Given

class TestClass{

public static void main(String[] args){

A a = new A();

B b = new B();

};

}

class A implements T1, T2{}

class B extends A implements T1{}

interface T1 { }

interface T2 { }

Select 4 options

A. (a instanceof T1) will return true.

B. (a instanceof T2) will return true.

C. (b instanceof T1) will return true.

D. (b instanceof T2) will return true.

E. (b instanceof A) will return false.

Q&A Set: 

Search the Web

Custom Search

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