正在加载图片...
数据类型 JAVA 基本数据类型 ■数字( numbel) 整型( (integers 1.字节整数(byte,8bits:-128-127,0 2.短整数( short,16bits):-32768~32767,0 3.整数(int,32bts) 2147483648~2147483647.0 4.长整数(ong,64bits):…,0L ■实型( real numbers):浮点型(有敌位数不同) 1.单精度( float,32bits):…0.0F 2.双精度( double,64bits):…0.0D 字符(cha,16- bit Unicode字符):Ⅶu0O0O~u斤ff 布尔( boolean):true,fale 复合数据类型 数组(Ary),类(clas,接口( interface)10 数据类型 ◼ 基本数据类型 ◼ 数字 (number) ◼ 整型 (integers) 1. 字节整数 (byte, 8 bits): -128 ~127, 0 2. 短整数 (short, 16 bits): -32768 ~ 32767, 0 3. 整数 (int, 32 bits): -2147483648 ~ 2147483647, 0 4. 长整数 (long, 64 bits): … …, 0L ◼ 实型 (real numbers): 浮点型 (有效位数不同) 1. 单精度(float, 32 bits): … …, 0.0F 2. 双精度(double, 64 bits): … …, 0.0D ◼ 字符 (char, 16-bit Unicode字符): \u0000 ~ \uffff ◼ 布尔 (boolean): true, false ◼ 复合数据类型 ◼ 数组(Array), 类(class), 接口(interface)
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有