注解
- import org.junit.Test; 代表测试
- @override 重寫
- @before 在@test之前执行
- @after 在@test之后执行
接口 implements
- Serializable 标记这个类可以用二进制传输
继承 extends
-final 修饰的类不能被继承
异常
- NullPointerException 空指针异常
- java.lang.ClassCastException 转换异常
Throwable [抛出能力类]
|__Error [错误]
|__VirtulMachineError [虚拟机错误]
|__StackOverFlowError [栈溢出]
|__OutOfMemoryError [内存溢出]
...
|__Exception [异常]
|__IOException [文件读写异常]
|__EOFException [end of file文件已经读完了,你还在读]
|__FileNotFoundException [文件没找到异常]
|_ ReflectiveOperationException [响应操作异常]
|__ClassNotFountException [类没找到异常]
|__RuntimeException [运行时异常]
|__ArithmeticException [数学异常]
|__MissingResourceException [资源文件丢失异常]
|__ClassCastException [类转换异常]
|__NullPointerException [空指针异常:使用null调用,计算,取值等]
|__IllegalArgumentException [非法参数异常]
|_ UnknownEntityException [未知实体异常]
|__UnknownTypeException [未知类型异常]
|_ IndexOutOfBoundsException [角标越界]
|__ArrayIndexOutOfBoundsException [数组角标越界异常]
|__StringIndexOutOfBoundsException [字符串角标越界异常]
...
快捷键
- ctrl+d 快速复制
- ctrl+? 单行注释
- ctrl+shift+? 多行注释
- ctrl+q 查看方法详细信息
- ctrl+shift+u 选中全变大写
- ctrl+shift+- 全折叠
- ctrl+shift++ 全打开
- ctrl+shift+f 页面快速查找
- ctrl+F12 快速查找当前类中的属性和方法
- ctrl+h 看继承的儿子 -ctrl+shift+t 常用快捷键
- 双击shift
- ctrl ait +b 调用接口底层
- ipconfig cmd 看自己ip