<?xml version="1.0" encoding="UTF-8"?>











<rss version="2.0" xmlns:jf="http://www.jivesoftware.com/xmlns/jiveforums/rss">



<channel>
    <title>Support Forums: Message List - Use Interface for declaring Constants</title>
    <link>http://www.theserverside.com</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    
        <generator>Jive Forums Silver 5.5.30 (www.jivesoftware.com)</generator>
    
    <pubDate>Sun, 26 May 2013 02:07:42 -0400</pubDate>


    <item>

        <title>don't really know!</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=19221</link>

        

        
            <description><![CDATA[<p>1.) I think we shouldn't consider import static as a feature to be widely used. Why? Try to read a code fragment that makes use of Collections and other APIs static functions and try to determine what the code does!</p>...]]></description>
        

        <pubDate>Tue, 03 May 2011 04:08:03 -0400</pubDate>

        

        <jf:creationDate>Tue, 03 May 2011 04:08:03 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 03 May 2011 04:08:03 -0400</jf:modificationDate>
        <jf:date>May 3, 2011</jf:date>
        <jf:author>Alex Hepp</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>import static</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=19221</link>

        

        
            <description><![CDATA[Not sure, but does 1.5 support import static on interface constants?  If not I guess that would be one more reason to use classes to hold constants instead of interfaces.  Though its still annoying having to read and type public static final every single...]]></description>
        

        <pubDate>Tue, 06 Jul 2004 16:21:56 -0400</pubDate>

        

        <jf:creationDate>Tue, 06 Jul 2004 16:21:56 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 06 Jul 2004 16:21:56 -0400</jf:modificationDate>
        <jf:date>Jul 6, 2004</jf:date>
        <jf:author>Archimedes Trajano</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Don't agree but...</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=19221</link>

        

        
            <description><![CDATA[I don't agree with Bloch either.  I prefer code compactness and ease of reading.  To that effect I don't agree with &quot;implementing&quot; constant interfaces.<br><br>However, this is in <a href="http://www.fluid.cs.cmu.edu"...]]></description>
        

        <pubDate>Tue, 06 Jul 2004 16:01:24 -0400</pubDate>

        

        <jf:creationDate>Tue, 06 Jul 2004 16:01:24 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 06 Jul 2004 16:01:24 -0400</jf:modificationDate>
        <jf:date>Jul 6, 2004</jf:date>
        <jf:author>Archimedes Trajano</jf:author>
        <jf:replyCount>2</jf:replyCount>
    </item>


    <item>

        <title>Because....</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=19221</link>

        

        
            <description><![CDATA[Bloch: &quot;When a class implements an interface, the interface serves as a type that can be used to refer to instances of the class. That a class implements an interface should therefore say something about what a client can do with instances of the...]]></description>
        

        <pubDate>Fri, 16 May 2003 11:56:38 -0400</pubDate>

        

        <jf:creationDate>Fri, 16 May 2003 11:56:38 -0400</jf:creationDate>
        <jf:modificationDate>Fri, 16 May 2003 11:56:38 -0400</jf:modificationDate>
        <jf:date>May 16, 2003</jf:date>
        <jf:author>Mike Spille</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Re: Don't agree</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=19221</link>

        

        
            <description><![CDATA[I tend to agree with SAF ...... maybe we can ask James Gosling ...... when his team designed Java interface, all attributes defined would automatically interpreted by the Java compiler as final and static, which in the other words is a constant.  There...]]></description>
        

        <pubDate>Wed, 07 May 2003 13:42:22 -0400</pubDate>

        

        <jf:creationDate>Wed, 07 May 2003 13:42:22 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 07 May 2003 13:42:22 -0400</jf:modificationDate>
        <jf:date>May 7, 2003</jf:date>
        <jf:author>Alan Choy</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Don't agree</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=19221</link>

        

        
            <description><![CDATA[I don't agree with Bloch. It sounds like his opinion rather than a 'best practice'. Interfaces can be used for many different things; an implementation policy, where the inteface contains abstract methods. Interfaces can also serve as an identity marker...]]></description>
        

        <pubDate>Wed, 07 May 2003 10:42:46 -0400</pubDate>

        

        <jf:creationDate>Wed, 07 May 2003 10:42:46 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 07 May 2003 10:42:46 -0400</jf:modificationDate>
        <jf:date>May 7, 2003</jf:date>
        <jf:author>SAF .</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Because....</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=19221</link>

        

        
            <description><![CDATA[<div class="jive-quote">And the reason for that would be 'what' exactly? Why would using a regular</div>...]]></description>
        

        <pubDate>Wed, 07 May 2003 09:54:06 -0400</pubDate>

        

        <jf:creationDate>Wed, 07 May 2003 09:54:06 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 07 May 2003 09:54:06 -0400</jf:modificationDate>
        <jf:date>May 7, 2003</jf:date>
        <jf:author>Paul Holser</jf:author>
        <jf:replyCount>3</jf:replyCount>
    </item>


    <item>

        <title>Why?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=19221</link>

        

        
            <description><![CDATA[And the reason for that would be 'what' exactly? Why would using a regular class be better than using an interface? 
<br>
<br>SAF]]></description>
        

        <pubDate>Wed, 07 May 2003 09:05:49 -0400</pubDate>

        

        <jf:creationDate>Wed, 07 May 2003 09:05:49 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 07 May 2003 09:05:49 -0400</jf:modificationDate>
        <jf:date>May 7, 2003</jf:date>
        <jf:author>SAF .</jf:author>
        <jf:replyCount>4</jf:replyCount>
    </item>


    <item>

        <title>Yes!</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=19221</link>

        

        
            <description><![CDATA[I think Joshua Bloch covers this in his book on effective Java. If I remember correctly he recommends not using Interfaces for storing constants.]]></description>
        

        <pubDate>Wed, 07 May 2003 02:43:18 -0400</pubDate>

        

        <jf:creationDate>Wed, 07 May 2003 02:43:18 -0400</jf:creationDate>
        <jf:modificationDate>Wed, 07 May 2003 02:43:18 -0400</jf:modificationDate>
        <jf:date>May 7, 2003</jf:date>
        <jf:author>Aaron Robinson</jf:author>
        <jf:replyCount>5</jf:replyCount>
    </item>


    <item>

        <title>Yes!</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=19221</link>

        

        
            <description><![CDATA[Using an interface for declaring constants is a better idea thatn using a regualr class since, if you use a class, then you will need to qualify the constant with the class name, such as MyClass.CONSTANT_NAME....]]></description>
        

        <pubDate>Tue, 06 May 2003 20:49:18 -0400</pubDate>

        

        <jf:creationDate>Tue, 06 May 2003 20:49:18 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 06 May 2003 20:49:18 -0400</jf:modificationDate>
        <jf:date>May 6, 2003</jf:date>
        <jf:author>SAF .</jf:author>
        <jf:replyCount>9</jf:replyCount>
    </item>


    <item>

        <title>Use Interface for declaring Constants</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=19221</link>

        

        
            <description><![CDATA[Hi,...]]></description>
        

        <pubDate>Tue, 06 May 2003 18:04:30 -0400</pubDate>

        

        <jf:creationDate>Tue, 06 May 2003 18:04:30 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 06 May 2003 18:04:30 -0400</jf:modificationDate>
        <jf:date>May 6, 2003</jf:date>
        <jf:author>Anil Patel</jf:author>
        <jf:replyCount>10</jf:replyCount>
    </item>



</channel>
</rss>

