Alguém pode me ajudar com essa questão que apenhei em um simulado?
a resposta é letra: B
Given three classes A,B and C, where B is a subclass of A and C is a subclass
of B, which one of these boolean expressions is true when an object denoted
by reference o has actually been instantiated from class B as opposed to
from A or C?
Select the one correct answer.
a) (o instanceof B) && (!(o instanceof A))
b) (o instanceof B) && (!(o instanceof C))
c) !((o instanceof A) || (o instanceof B))
d) (o instanceof B)
e) (o instanceof B) && !((o instanceof A) || (o instanceof C))
Dúvidas:
-Pq a resposta dessa questão é B? Não entendi
-e se é a B, a D tb era pra ser verdade.