When should null values of Boolean be used?

前端 未结 14 2360
心在旅途
心在旅途 2020-12-04 07:32

Java boolean allows values of true and false while Boolean allows true, false, and null. I have

14条回答
  •  -上瘾入骨i
    2020-12-04 08:00

    I suppose in some case, you should have a mechanism to distinguish a Boolean field which already set value or not.

提交回复
热议问题