null instanceof
时间: 2023-10-17 16:34:33 浏览: 100
null
null instanceof 的结果是 false。根据引用中提到的特性,null不具有任何对象的特性,所以无论和任何类型比较,null instanceof 都会返回 false。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Java基础(七): instanceof用法详解](https://blog.csdn.net/mingyuli/article/details/120411767)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [JavaScript中遇到“null instanceof Object ”返回值为false的解释](https://blog.csdn.net/weixin_42049636/article/details/81565461)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文