-->
当前位置:首页 > 题库

单选题:For object o and class C, which expression below is the right wa

Luz5年前 (2021-05-10)题库881
For object o and class C, which expression below is the right way to test if o is an object of C? @[A](2)

A. o instanceof C
B. C.isInstance(o)
C. o.getClass() == C
D. o.class == C




A.o instanceof C
B.C.isInstance(o)
C.o.getClass() == C
D.o.class == C


答案:A