注意:java的常量优化机制 报错原因:精度损失问题,要进行强制类型转换(这种行为会造成精度损失);定义long,加l 数据范围: byte<short=char<int<long<float<double