Int和Integer(课上测试)

截图

第一段代码:

第二段代码:

两段代码出现不一样结果的缘由:Integer类型的取值范围为-128至128之间,小于128的数(图1)为正确,大于128的数(图2)为错误blog

相关文章
相关标签/搜索