Java中的第三个布尔状态是什么? [英] What is the third boolean state in java?
本文介绍了Java中的第三个布尔状态是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
虽然我知道根据定义,布尔值仅包含两个状态,即true或false.我想知道布尔值在用这些状态之一初始化之前具有什么值.
While I know that by definition a boolean consists of only two states, true or false. I was wondering what value does a boolean have before it is initialized with one of these states.
推荐答案
除非您使用包装好的布尔值,默认为null. – sudhir.j
unless you're using the wrapped Boolean, which defaults to null. – sudhir.j
这篇关于Java中的第三个布尔状态是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文