Compound assignments do not require casts for char,byte,or short,even though they are performing promotions that have the same results as the direct arithmetic operations.

 
  • 对于char,byte或者short,混合赋值并不需要造型。即使它们执行转型操作,也会获得与直接算术运算相同的结果。
今日热词
目录 附录 查词历史