public class Test2
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/ContractedBlock.gif)
{
public static void main(String[] args)
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
Float a = new Float(3.4);
System.out.println(a.SIZE);
a = new Float(34000);
System.out.println(a.SIZE);
}
![](/Images/OutliningIndicators/InBlock.gif)
}
![](/Images/OutliningIndicators/None.gif)
让我们来看看此程序会输出什么呢?
我们先来看看JDK的解释吧.
public static final int SIZE
The number of bits used to represent a float value.
意思是说:通常去描述一个float值的位数.
这个是一个常量,来看看源码吧:
public static final int SIZE = 32;
final int 变量一旦被定义就不能被改变~