1.查看jdl的版本:java -version;查看jdk是否安装成功:echo "%path%"java
2.基本数据类型(1个字节=8位,8位是不可分割的):四种八类spa
2.1整型:byte 一个Byte -127-128io
short 2个Byte ~21亿jdk
int 4个Byte -2^31--2^31-1数据类型
long 8个Bytefloat
2.2 浮点型 float 4个Byte such as:表示3.14 314xE负二次方数据
double 8个Byteco
2.3 字符 2个字节 char 0 -- 2^16-1 Right example:char xxx='\u0000' ;char xxx='\n' ;char sex=‘大’;字符
Wrong example:char xxx='Fx'path
2.4 布尔型 boolean true and false;
能够向上转型,向下转型会损失精度 such as:long c = long(a+b) ; wrong (a+b)>1000;wrong (须要判断临界值)
right long c = (long)a + (long)b; foat money = 1.0F;
3.