java基本语句

 

整形    :    byte(1) short(2) int(4) long(8)
浮点型    :     float(4)  double(8)  
字符型    :     char(2)

布尔类型:     boolean(1)(1/8)

 

公式: byte , short , char --> int --> long --> float --> double

隐式转换  →   int=byte+byte          int=byte+short          long=int+long

 

 

 

相关文章:

  • 2021-06-15
  • 2022-12-23
  • 2021-06-25
  • 2021-08-03
  • 2021-11-29
  • 2022-01-07
  • 2022-01-15
  • 2021-11-16
猜你喜欢
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2021-11-29
  • 2021-10-12
  • 2021-07-06
  • 2021-12-24
相关资源
相似解决方案