自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

The Common Java cookbook 笔记(1)

1.4.1. ProblemYou want to automate the creation of toString( ) methods.1.4.2. SolutionUse the Commons Lang ReflectionToStringBuilder or ToStringBuilder and ToStringBuilder to c...

2009-08-15 14:19:41 104

原创 面向对象的设计原则

收藏一些链接,感觉写得挺不错 面向对象的设计原则一 开放-关闭原则 面向对象的设计原则二-单一职责原则面向对象的设计原则三 - 接口隔离原则面向对象的设计原则四 - 里氏代换原则面向对象的设计原则五 - 依赖倒转原则面向对象设计原则六 - 针对接口编程,而不是针对实现编程 面向对象设计原则七 - 组合优先于继承 ...

2009-08-15 11:03:26 115

原创 Java theory and practice: To mutate or not to mutate?

Summary:  Immutable objects have a number of properties thatmake working with them easier, including relaxed synchronizationrequirements and the freedom to share and cache object referenceswit...

2009-08-15 00:32:01 217

原创 Java theory and practice: Building a better HashMap

Summary:  ConcurrentHashMap, part of Doug Lea's util.concurrent package, offers a higher degree of concurrency than Hashtable or synchronizedMap. In addition, it manages to avoid l...

2009-08-15 00:27:40 153

原创 Java theory and practice: Concurrent collections classes

Summary:  In addition to many other useful concurrency building blocks, Doug Lea's util.concurrent package contains high-performance, thread-safe implementations for workhorse collection types...

2009-08-15 00:23:56 128

原创 Java theory and practice: A brief history of garbage collection

The benefits of garbage collection are indisputable -- increasedreliability, decoupling of memory management from class interfacedesign, and less developer time spent chasing memory management err...

2009-08-15 00:04:34 186

原创 Java theory and practice: Garbage collection and performance

In the early days of Java technology, allocating objects got apretty bad rap. There were lots of articles (including some by thisauthor) advising developers to avoid creating temporary objectsun...

2009-08-14 23:33:44 226

原创 Removing GC Synchronisation

Removing GC SynchronisationAndy C. King ak32@ukc.ac.uk ACM No. 5256805 Computing Laboratory University of Kent Canterbury, Kent, CT2 7NF, UK ...

2009-08-14 23:15:47 233

原创 Tuning Garbage Collection with the 1.4.2 Java[tm] Virtual Machine

Table of Contents1Introduction2Generations2.1Performance Considerations2.2Measurement3Sizing the Generations3.1Total Heap3.2The Yo...

2009-08-14 22:55:25 137

原创 Java theory and practice: Hashing it out --hashCode

Summary:  Every Java object has a hashCode() and an equals()method. Many classes override the default implementations of thesemethods to provide a higher degree of semantic comparability betwe...

2009-08-14 22:08:56 109

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除