0
点赞
收藏
分享

微信扫一扫

Integer.MIN_VALUE ,Integer.MAX_VALUE)

架构大数据双料架构师 2022-02-22 阅读 74
p2plinqgnu

/**
     * A constant holding the minimum value an {@code int} can
     * have, -2<sup>31</sup>.
     */
    @Native public static final int   MIN_VALUE = 0x80000000;

    /**
     * A constant holding the maximum value an {@code int} can
     * have, 2<sup>31</sup>-1.
     */
    @Native public static final int   MAX_VALUE = 0x7fffffff;

在JDK中,整型类型是有范围的  -2147483648~2147483647  ( -2^31 --- 2^31-1) 

举报

相关推荐

0 条评论