Why is Java able to store 0xff000000 as an int?

前端 未结 5 956
说谎
说谎 2020-12-01 19:33

An integer\'s max value in Java is 2147483647, since Java integers are signed, right?

0xff000000 has a numeric value of 4278190080.

Yet I see Java code like

5条回答
提交回复
热议问题