`
z_wang
  • 浏览: 4915 次
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
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 single constructor, whose parameter type is the enclosing class. This constructor merely copies the d ...
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 validity and make defensive copies of parameters where appropriate, so must a readObject method. If a r ...
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 serialized form of an object is a reasonably efficient encoding of the physical representation of the obj ...
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 complete 4. retrieve the results of tasks one by one as they complete Choosing the executor service for a p ...
Higher layers should catch lower-level exceptions and, in their place, throw exceptions that can be explained in terms of the higher-level abstraction.
cmd 查看端口使用情况 在开发过程中,启动服务的时候最经常就是碰到端口被占用的情况.下面介绍如何查看端口被那个程序占用了. eg: 要查看端口   8800   被什么程序占用了. 1. 运行 cmd 2. 输入 netstat -aon|findstr "8800"  查看占用端口的进程id 3. 运行tasklist|findstr "9204"  根据进程id查看对应程序 4. 知道后怎么处理看你自己了
cmd 查看端口使用情况 在开发过程中,启动服务的时候最经常就是碰到端口被占用的情况.下面介绍如何查看端口被那个程序占用了. eg: 要查看端口   8800   被什么程序占用了. 1. 运行 cmd 2. 输入 netstat -aon|findstr "8800"  查看占用端口的进程id 3. 运行tasklist|findstr "9204"  根据进程id查看对应程序 4. 知道后怎么处理看你自己了
Global site tag (gtag.js) - Google Analytics