最佳答案
在Java中有关于Integer vs int的讨论。前者的默认值是null,而后者的默认值是0。Boolean和boolean怎么样?
我的应用程序中的变量可以有0/1值。我想使用boolean/Boolean,而不喜欢使用int。我可以使用Boolean/boolean代替吗?