关键字2-2 异常处理 字面值常量(不是关键字) False catch ue finally throw null throws >方法相关关键字 >对象相关关键字 return new void extends implements 包相关关键字 class a package interface a import instanceof this ■ super 索迪教育
索迪教育 关键字2-2 ➢ 异常处理 ◼ try ◼ catch ◼ finally ◼ throw ◼ throws ➢ 对象相关关键字 ◼ new ◼ extends ◼ implements ◼ class ◼ interface ◼ instanceof ◼ this ◼ super ➢ 字面值常量(不是关键字) ◼ false ◼ true ◼ null ➢ 方法相关关键字 ◼ return ◼ void ➢ 包相关关键字 ◼ package ◼ import
Java的数据类型 >基本类型 类型 关键字 值 字节 byte8位带符号整数 短整型 short16位带符号整数 整型 nt32位带符号整数 长整型 long 64位带符号整数 单精度浮点数foa32位IEEE754浮点数 双精度浮点数 double64位IEEE754浮点数 字符 char16位 Unicode字符 布尔 boolean true、 false 索迪教育
索迪教育 Java 的数据类型 ➢ 基本类型 类型 关键字 值 字节 byte 8位带符号整数 短整型 short 16位带符号整数 整型 int 32位带符号整数 长整型 long 64位带符号整数 单精度浮点数 float 32位 IEEE 754 浮点数 双精度浮点数 double 64位 IEEE 754 浮点数 字符 char 16位 Unicode 字符 布尔 boolean true、false
Java的数据类型 >类类型 Button cmdOK= new Button(“确定”); √ Button method >接口类型 a implements ActionListener ActionListener method >数组类型 a int[] s=new int[4] 索迪教育
索迪教育 Java 的数据类型 ➢ 类类型 ◼ Button cmdOK=new Button(“确定”); ✓Button.method ➢ 接口类型 ◼ implements ActionListener ✓ActionListener.method ➢ 数组类型 ◼ int[] s=new int[4];