《Ivor Horton's Beginning Java》 Chapter1-7 读书笔记

Ivor Horton's Beginning Java 笔记

1、Java命令行
java
javac
-source
-classpath -cp
-ea
-encoding
-d

2、数字带下划线的表示方法

1_234_567_890L

3、数字符号 Infinity,NaN

4、Math Class

5、Bitwise Operation的静态方法

6、javadoc

7、Array and String
char类型为2个Byte
StringBuffer(线程安全)和StringBuiler

8、Class

Field和Method

final
this关键词

Initialization Blocks 初始化块

Duplicating Objects Using a Constructor

建立package;jar cvf 命令

nested class 嵌套类

9、garbage collection 垃圾回收

10、方法重载与重写,@Override关键字

11、对Primitive Types的boxing conversions 和autoboxing

12、class inheritance 继承

13、super关键字

14、polymorphism 多态

15、多态只适用于方法,不适用于成员变量

16、动态绑定

17、抽象类

18、Object类及其方法,toString(),equals(),getClass(),hashCode(),clone(),finalize()

19、instanceof

20、Cloneable接口与Copy Constructor

21、变参数 Object ... args

22、Enumeration也是一个特殊的类,可添加成员方法

23、interface 接口

24、Constants defined in an interface are automatically public, static, and final.

25、anonymous class 匿名类

26、Throwable类,Two direct subclasses of Throwable —  Error and Exception

27、 checked exceptions. Unchecked exceptions are exceptions where you have the option of dealing with them or not, all exceptions thrown by methods in the Java
class library are checked.

28、Catching Multiple Exception Types in a Block

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值