Java中的关键字
abstart | boolean | break | byte | case | catch | char | const | class | continue |
default | do | double | else | extends | final | finally | float | for | goto |
if | implements | import | instanceof | int | interface | long | native | new | package |
private | protected | public | return | short | static | strictip | super | switch | this |
volatile | while | synchronized |
Java中的常量
1.整形常量
2.浮点型常量
3.字符常量
4.字符串常量
5.布尔常量
6.null常量
Java中的变量
1.变量的数据类型
- 基本数据类型
- 数值型{[整数类型(byte,short,int,long)][浮点类型(float,double)]}
- 字符型(char)
- 布尔型 (boolean)
引用数据类型{类(class).接口(interface).数组
枚举(enum). 注释(annotation)}
2. 整数型类型常量
3.浮点数类型常量
4.字符类型变量
5.布尔类型变量
6.变量类型转换
7.变量的作用域
Javaz中的运算符
1.算数运算符
2.赋值运算符
3.比较运算符
4.逻辑运算符{与 &,或 |,异或 ^, 非 ! ,短路与 && , 短路或 ||}
5.位运算符{ 按位与 &,按位或 | 取反 ~, 按位异或 ^, 左移 << , 右移 >> , 无符号右移 >>> }
选择结构语句
1.if条件语句
2.if...else..语句
3.if...else if....else语句
4.switch条件语句
循环结构语句
1.while循环语句
2.do....while循环语句
3.for循环语句
4.循环嵌套
5.跳转语句 break ,continue
方法
1.getArea()
2.方法重载
3.方法递归
数组
1.数组遍历
2.数组最值
3.数组排序
4.多维数组
面向对象 继承、封装、多态
类与对象
1.类的设计
2.类的封装
构造方法
1.构造方法的重载
this关键字
垃圾回收
static关键字
1.静态变量
2.静态方法
3.静态代码块
4.单例模式
内部类
1.成员内部类
2.静态内部类
3.方法内部类
java文档注释/** */
类的继承
重写父类方法
super关键字
final关键字
1.final关键字修饰类
2.final关键字修饰方法
3.final关键字修饰变量
抽象类和接口
1.抽象类、
2.接口
多态
1.对象的类型转换
Object类
匿名内部类
异常
1.try...catch
2.finally
3.throws关键字
4.运行时异常与编译时异常
包
1.import语句
2.给java应用打包
3.访问控制
多线程
进程
线程
1.继承Thread类创建多线程
2.实现Runnable接口创建多线程
3.两种实现多线程方式的对比分析
4.后台线程
线程的生命周期及状态转换
1.新建状态
2.就绪状态
3.运行状态
4.阻塞状态
5.死亡 状态
线程的调度
1.线程的优先级
2.线程休眠
3.线程让步
4.线程插队
线程多同步
1.线程安全
2.同步代码块
3.同步方法
4.死锁问题
多线程通信
1.问题引入
2.解决问题
void wait() | |
void notify() | |
void notifyAll() |
Java API
String类和StringBuffer类
1.String类的初始化
2.String类的常见操作
int indexOf(int ch) | |
int lastIndexOf(int ch) | |
char chatAt(int index) | |
boolean endsWith(String suffix) | |
int length() | |
boolean equals(Object anObject) | |
boolean isEmpty() | |
boolean startsWith(String prefix) | |
boolean contains(CharSequence cs) | |
String toLowerCase() | |
String toUpperCase() | |
String valueOf(int i) | |
char[] toCharArray() | |
String replace(CharSequence oldstr,CharSequence newstr) | |
String[] split(String regex) | |
String substring(int beginIndex) | |
String substring (int beginIndex,int endIndex) | |
String trim() |
3.字符串的转换操作
4.字符串的替换和去空格操作
5.字符串的判断操作
6.字符串的截取和分割
String Buffer append(char c) | |
String insert(int offset,String str) | |
StringBuffer deleteCharAt(int index) | |
StringBuffer delete(int start,int end) | |
StringBuffer replace(int start,int end,String s) | |
void setCharAt(int index,char ch) | |
StringBuffer reverse() | |
System类 与 Runtime类
System类
1.getProperties()
2.currentTimeMillis()
3.arraycopy(Object src ,int srcPos ,Object dest,int destPos,int length)
Runtime 类
Math类 与 Random类
包装类
Data类、Calendar类、DataFormat类
SimpleDateFormat类
集合类
collection接口
list接口
ArrayList集合
LinkedList集合
lterator接口
Listlterator接口
Enumeration接口
Set接口
HashSet集合
TreeSet集合
Map接口
1.HashMap集合
2.TreeMap集合
3.Properties集合
Collection工具类
Arrays工具类
IO(输入和输出)
字节流
1.字节流读写文件
2.文件的拷贝
3.字节流的缓冲区
4.装饰设计模式
5.字节缓冲流
字符流
1.字符流操作文件
2.LineNumberReader
3.转换流
其他IO流
1.ObjectinputStream 和 ObjectOutputStream
2.DatalnputStream 和 DataOutputStream
3.PrintStream
4.标准输入输出流
5.PipedinputStream 和 PipedOutStream
6.ByteArrayInputStream 和 ByteArrayOutStream
7.CharArrayReader 和 CharArrayWriter
8.SequenceInputStream
File类
1.遍历目录下的文件
2.删除文件及目录
RandomAccessFile
字符编码
1.常用字符集
2.字符编码和解码
3.字符传输
GUI(图行用户界面)
AWT概述
1.Window
2.Panel
AWT事件处理
1.事件处理机制
2.事件适配器
3.匿名内部类实现事件处理
常用事件分类
1.窗体事件
2.鼠标事件
3.键盘事件
4.动作事件
布局管理器
1.FlowLayout
2.BorderLayout
3.GridLayout
4.CardLayout
5.不使用布局管理器
AWT绘图
Swing
1.JFrame
2.JDialog
3.中间容器
4.文本组件
按钮组件
1.JCeckBox
2.JradionButton
3.JComboBox
菜单组件
1.下拉式菜单
2.弹出式菜单
网络编程
网络通信协议
1.IP地址和端口号
2.InetAddress
3.UDP 与 TCP协议
UDP通信
1.DatagramPacket
2.DatagramSocket
3.UDP网络程序