目 录
一、 Java 技术基础 ........................................................................................................................1
1.1 编程语言..............................................................................................................................1
1.2 Java 的特点..........................................................................................................................1
1.3 Java 开发环境......................................................................................................................1
1.4 Java 开发环境配置..............................................................................................................2
1.5 Linux 命令与相关知识 .......................................................................................................2
1.6 Eclipse/Myeclipse 程序结构 ...............................................................................................3
二、 Java 语言基础 ........................................................................................................................4
2.1 基础语言要素......................................................................................................................4
2.2 八种基本数据类型..............................................................................................................4
2.3 常量和变量..........................................................................................................................5
2.4 运算符与表达式..................................................................................................................5
2.5 编程风格..............................................................................................................................6
2.6 流程控制语句......................................................................................................................7
2.7 数组......................................................................................................................................8
2.8 字符串..................................................................................................................................8
2.9 方法三要素..........................................................................................................................9
2.10 插入排序............................................................................................................................9
2.11 冒泡排序............................................................................................................................9
2.12 冒泡排序:轻气泡上浮的方式......................................................................................10
2.13 二分法查找......................................................................................................................10
2.14 Java 系统 API 方法调用 .................................................................................................11
2.15 二进制基础......................................................................................................................11
2.16 Java 基础其他注意事项..................................................................................................11
三、 面向对象...............................................................................................................................13
3.1 类........................................................................................................................................13
3.2 对象....................................................................................................................................13
3.3 包........................................................................................................................................14
3.4 方法及其调用....................................................................................................................14
3.5 引用....................................................................................................................................14
3.6 访问控制(封装)............................................................................................................14
3.7 构造器................................................................................................................................14
3.8 super()、super.和 this()、this. ...................................................................................15
3.9 重载和重写........................................................................................................................16
3.10 继承..................................................................................................................................17
3.11 static .................................................................................................................................20
3.12 final ..................................................................................................................................21
3.13 多态..................................................................................................................................22
3.14 抽象类..............................................................................................................................22
3.15 接口..................................................................................................................................23
3.16 内部类..............................................................................................................................23
3.17 匿名类..............................................................................................................................24