日期:2014-05-20  浏览次数:20607 次

我想知道java中的简单类型的取值范围,要求在java.sun.com官网的答案,感谢
我想知道java中的简单类型的取值范围,要求在java.sun.com官网的答案,感谢

------解决方案--------------------
Java code
public final class Integer extends Number implements Comparable<Integer> {
    /**
     * A constant holding the minimum value an <code>int</code> can
     * have, -2<sup>31</sup>.
     */
    public static final int   MIN_VALUE = 0x80000000;

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

...