2012年1月3日 学习心得
1、Java一切皆对象(Object)、C++没有这个机制、导致对象没有一个共通的规范、所以会造成多继承。
2、不同的容器类为特定问题的解决提供了有效率的方法
3、泛型是为了解决对象向下转换的风险而产生的
4、异常对提高程序健壮性有很大的帮助
Java’s exception handling stands out among programming languages, because in Java,
exception handling was wired in from the beginning and you’re forced to use it. It is the
single acceptable way to report errors. If you don’t write your code to properly handle
exceptions, you’ll get a compile-time error message. This guaranteed consistency can
sometimes make error handling much easier.
这段话要好好研究,仔细体会