摘要:
Which of the following is better?a instanceof BorB.class.isAssignableFrom(a.getClass())The only difference that I know of is, when 'a' is null, the first returns false, while the second throws an exception. Other than that, do they always give the same result?When usinginstanceof, you need t 阅读全文
posted @ 2013-10-28 16:19
Zollty
阅读(798)
评论(0)
推荐(0)
浙公网安备 33010602011771号