- 博客(7)
- 问答 (2)
- 收藏
- 关注
原创 Consider serialization proxies instead of serialized instances
The serialization proxy pattern is reasonably straightforward. First design a private static nested class of the serializable class. This nested class, known as the serialization proxy, should have a ...
2012-10-02 16:32:13
132
原创 Write readObject methods defensively
The problem is that the readObject method is effectively another public constructor, and it demands all of the same care as any other constructor. Just as a constructor must check its arguments for va...
2012-10-02 14:59:48
133
原创 Consider using a custom serialized form
Generally speaking, you should accept the default serialized form only if it is largely identical to the encoding that you would choose if you were designing a custom serialized form The default se...
2012-10-02 14:00:49
103
原创 Prefer executors and tasks to threads
By using executor service, you can: 1. wait for a particular task to complete 2. wait for any or all of a collection of tasks to complete 3. wait for executor service's graceful termination to comp...
2012-09-30 15:52:24
121
原创 Item 61: Throw exceptions appropriate to the abstraction
Higher layers should catch lower-level exceptions and, in their place, throw exceptions that can be explained in terms of the higher-level abstraction.
2012-09-28 21:27:49
131
原创 【转载】cmd 查看端口使用情况
cmd 查看端口使用情况 在开发过程中,启动服务的时候最经常就是碰到端口被占用的情况.下面介绍如何查看端口被那个程序占用了. eg: 要查看端口 8800 被什么程序占用了. 1. 运行 cmd 2. 输入 netstat -aon|findstr "8800" 查看占用端口的进程id 3. 运行tasklist|findstr "9204"...
2012-09-28 21:25:23
88
原创 【转载】cmd 查看端口使用情况
cmd 查看端口使用情况 在开发过程中,启动服务的时候最经常就是碰到端口被占用的情况.下面介绍如何查看端口被那个程序占用了. eg: 要查看端口 8800 被什么程序占用了. 1. 运行 cmd 2. 输入 netstat -aon|findstr "8800" 查看占用端口的进程id 3. 运行tasklist|findstr "9204"...
2012-09-28 21:24:54
104
空空如也
开发自己的搜索引擎
2012-07-08
除了Java语言外还有什么好的语言值得学习?
2012-07-07
TA创建的收藏夹 TA关注的收藏夹
TA关注的人