instanceof

typeA instanceof TypeB : 如果 typeA 是 typeB 类型,返回 true 否则返回 false

例如:

  boolean status = anObject instance String    : 如果anObject是String类型的返回true,否则返回false。   

posted @ 2019-01-18 11:39  五毒不侵滴bug  阅读(119)  评论(0编辑  收藏  举报