<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/superlifebuoy" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/superlifebuoy" type="application/rss+xml"></fs:self_link><lastBuildDate>Mon, 16 Nov 2009 09:29:00 GMT</lastBuildDate><title>superlifebuoy的专栏</title><description>CSDN博客聚合服务</description><link>http://blog.csdn.net/blogrss.aspx?username=superlifebuoy</link><item><title>effective_java读书笔记_1_使用静态工厂方法代替构造函数</title><link>http://blog.csdn.net/superlifebuoy/archive/2009/11/16/4816943.aspx</link><description>&lt;br /&gt;使用静态工厂方法代替构造函数的优势如下：
&lt;br /&gt;首先，静态工厂方法有自己的方法名。有时候同一个类为了多种目的不得不提供多个构造函数，然后依靠参数列表区分。这样的实现方式造成其在客户代码中不易理解，而且容易造成错误的使用。这个缺陷完全可以通过不同名字的静态工厂方法来弥补。当然各个静态工厂方法的名字要设计的言简意赅、简明扼要。
-_-|||&lt;br /&gt;其次，使用静态工厂方法可以实现单例，减少对象的创建次数。这样在时间与空间上均有优势，但是要注意别名问题。如果必须实现多例，则可以考虑使用clone
方法来代替构造函数。一般来说，对象的clone
方法多通过super.clone
方法来实现。但是要注意深拷贝/
浅拷贝问题。
&lt;br /&gt;    Boolean源代码示例：&lt;br /&gt;public final class Boolean implements java.io.Serializable, Comparable {
    public static final Boolean TRUE = new Boolean(true);&lt;img src=&quot;http://www1.feedsky.com/t1/297370077/superlifebuoy/csdn.net/s.gif?r=http://blog.csdn.net/superlifebuoy/archive/2009/11/16/4816943.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/superlifebuoy/297370077/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/superlifebuoy/297370077/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 16 Nov 2009 17:29:00 +0800</pubDate><author>superlifebuoy</author><guid isPermaLink="false">http://blog.csdn.net/superlifebuoy/archive/2009/11/16/4816943.aspx</guid><dc:creator>superlifebuoy</dc:creator><fs:srclink>http://blog.csdn.net/superlifebuoy/archive/2009/11/16/4816943.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/superlifebuoy/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/superlifebuoy/~6319833/297370077/4427768</fs:itemid></item><item><title>String类的intern方法</title><link>http://blog.csdn.net/superlifebuoy/archive/2009/11/05/4770273.aspx</link><description>    String类的intern方法签名是：public String intern()。JDK1.6的API中是这样说明该方法的：    返回一个该String对象的canonical（不太好翻译，大概意思是将一个对象的多份拷贝用一个或少数几个来代替）表示。    String类通过私有方法操作一个字符串池，该字符串池初始化时为空。    当调用intern方法时，如果该字符串池已经包含了与当前String类相等的字符串（该相等通过equals(Object)方法判定），则从字符串池中取出字符串返回。如果该字符串池中尚未包含与当前String类相等的字符串，则向字符串池添加该String对象（其实是将该String对象的值拷贝到字符串池中，下面有示例代码证明），并返回该字符串在字符串池中的引用。    任何两个字符串s与t，当s.equals(t)为真时，则s.intern() == t.intern()。    下面是例程1：public class Tes&lt;img src=&quot;http://www1.feedsky.com/t1/297370078/superlifebuoy/csdn.net/s.gif?r=http://blog.csdn.net/superlifebuoy/archive/2009/11/05/4770273.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/superlifebuoy/297370078/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/superlifebuoy/297370078/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 05 Nov 2009 09:52:00 +0800</pubDate><author>superlifebuoy</author><guid isPermaLink="false">http://blog.csdn.net/superlifebuoy/archive/2009/11/05/4770273.aspx</guid><dc:creator>superlifebuoy</dc:creator><fs:srclink>http://blog.csdn.net/superlifebuoy/archive/2009/11/05/4770273.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/superlifebuoy/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/superlifebuoy/~6319833/297370078/4427768</fs:itemid></item><item><title>领域对象与测试粒度</title><link>http://blog.csdn.net/superlifebuoy/archive/2008/09/01/2861116.aspx</link><description>领域对象与测试粒度&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/superlifebuoy/297370079/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/superlifebuoy/297370079/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 01 Sep 2008 13:49:00 +0800</pubDate><author>superlifebuoy</author><guid isPermaLink="false">http://blog.csdn.net/superlifebuoy/archive/2008/09/01/2861116.aspx</guid><dc:creator>superlifebuoy</dc:creator><fs:srclink>http://blog.csdn.net/superlifebuoy/archive/2008/09/01/2861116.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/superlifebuoy/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/superlifebuoy/~6319833/297370079/4427768</fs:itemid></item><item><title>单元测试</title><link>http://blog.csdn.net/superlifebuoy/archive/2008/08/31/2857275.aspx</link><description>单元测试&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/superlifebuoy/297370080/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/superlifebuoy/297370080/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 31 Aug 2008 21:48:00 +0800</pubDate><author>superlifebuoy</author><guid isPermaLink="false">http://blog.csdn.net/superlifebuoy/archive/2008/08/31/2857275.aspx</guid><dc:creator>superlifebuoy</dc:creator><fs:srclink>http://blog.csdn.net/superlifebuoy/archive/2008/08/31/2857275.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/superlifebuoy/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/superlifebuoy/~6319833/297370080/4427768</fs:itemid></item><item><title>LookupDiscovery</title><link>http://blog.csdn.net/superlifebuoy/archive/2008/07/31/2750480.aspx</link><description>LookupDiscovery&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/superlifebuoy/297370081/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/superlifebuoy/297370081/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 31 Jul 2008 22:27:00 +0800</pubDate><author>superlifebuoy</author><guid isPermaLink="false">http://blog.csdn.net/superlifebuoy/archive/2008/07/31/2750480.aspx</guid><dc:creator>superlifebuoy</dc:creator><fs:srclink>http://blog.csdn.net/superlifebuoy/archive/2008/07/31/2750480.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/superlifebuoy/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/superlifebuoy/~6319833/297370081/4427768</fs:itemid></item><item><title>LookupLocator</title><link>http://blog.csdn.net/superlifebuoy/archive/2008/07/30/2742250.aspx</link><description>LookupLocator&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/superlifebuoy/297370082/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/superlifebuoy/297370082/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 30 Jul 2008 22:02:00 +0800</pubDate><author>superlifebuoy</author><guid isPermaLink="false">http://blog.csdn.net/superlifebuoy/archive/2008/07/30/2742250.aspx</guid><dc:creator>superlifebuoy</dc:creator><fs:srclink>http://blog.csdn.net/superlifebuoy/archive/2008/07/30/2742250.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/superlifebuoy/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/superlifebuoy/~6319833/297370082/4427768</fs:itemid></item><item><title>MySQL数据库外键备忘</title><link>http://blog.csdn.net/superlifebuoy/archive/2008/07/23/2696357.aspx</link><description>MySQL数据库外键备忘&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/superlifebuoy/297370083/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/superlifebuoy/297370083/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 23 Jul 2008 14:13:00 +0800</pubDate><author>superlifebuoy</author><guid isPermaLink="false">http://blog.csdn.net/superlifebuoy/archive/2008/07/23/2696357.aspx</guid><dc:creator>superlifebuoy</dc:creator><fs:srclink>http://blog.csdn.net/superlifebuoy/archive/2008/07/23/2696357.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/superlifebuoy/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/superlifebuoy/~6319833/297370083/4427768</fs:itemid></item><item><title>MySQL远程登陆问题（号码1130）</title><link>http://blog.csdn.net/superlifebuoy/archive/2008/07/18/2670525.aspx</link><description>MySQL远程登陆问题（号码1130）&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/superlifebuoy/297370084/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/superlifebuoy/297370084/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 18 Jul 2008 11:37:00 +0800</pubDate><author>superlifebuoy</author><guid isPermaLink="false">http://blog.csdn.net/superlifebuoy/archive/2008/07/18/2670525.aspx</guid><dc:creator>superlifebuoy</dc:creator><fs:srclink>http://blog.csdn.net/superlifebuoy/archive/2008/07/18/2670525.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/superlifebuoy/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/superlifebuoy/~6319833/297370084/4427768</fs:itemid></item><item><title>文件路径最大深度</title><link>http://blog.csdn.net/superlifebuoy/archive/2008/07/16/2663298.aspx</link><description>文件路径最大深度&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/superlifebuoy/297370085/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/superlifebuoy/297370085/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 16 Jul 2008 22:55:00 +0800</pubDate><author>superlifebuoy</author><guid isPermaLink="false">http://blog.csdn.net/superlifebuoy/archive/2008/07/16/2663298.aspx</guid><dc:creator>superlifebuoy</dc:creator><fs:srclink>http://blog.csdn.net/superlifebuoy/archive/2008/07/16/2663298.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/superlifebuoy/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/superlifebuoy/~6319833/297370085/4427768</fs:itemid></item><item><title>rfc959 3.2 ESTABLISHING DATA CONNECTIONS</title><link>http://blog.csdn.net/superlifebuoy/archive/2008/07/11/2640809.aspx</link><description>rfc959 3.2 ESTABLISHING DATA CONNECTIONS&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/superlifebuoy/297370086/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/superlifebuoy/297370086/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 11 Jul 2008 21:48:00 +0800</pubDate><author>superlifebuoy</author><guid isPermaLink="false">http://blog.csdn.net/superlifebuoy/archive/2008/07/11/2640809.aspx</guid><dc:creator>superlifebuoy</dc:creator><fs:srclink>http://blog.csdn.net/superlifebuoy/archive/2008/07/11/2640809.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/superlifebuoy/rss.aspx</fs:srcfeed><fs:itemid>csdn.net/superlifebuoy/~6319833/297370086/4427768</fs:itemid></item></channel></rss>
