摘要:
获得一个类的实例的传统方法是公共的构造方法,还可以提供一个公共的静态工厂方法(一个返回值为该类实例的简单静态方法), 例如Boolean(boolean 的封装类) public static Boolean valueOf(boolean b) { return b ? Boolean.TRUE 阅读全文
posted @ 2019-01-21 23:01
开发小拉拉
阅读(116)
评论(0)
推荐(0)
摘要:
This chapter concerns creating and destorying objects : when and how to create them, when and how to avoid creating them, how to ensure they are desto 阅读全文
posted @ 2019-01-21 17:55
开发小拉拉
阅读(116)
评论(0)
推荐(0)