True or False

Quiz Guidelines

 

QID: 
394
Question: 

Given the following class definitions, the expression

(obj instanceof A) && ! (obj instanceof C) && ! (obj instanceof D)

correctly identifies whether the object referred to by obj was created by instantiating class B rather than classes A, C and D?

class A {}
class B extends A {}
class C extends B {}
class D extends C {}

Select 1 option

A. True
B. 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!!!