Why would a static inner interface be used in Java?
        Posted  
        
            by Mo
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Mo
        
        
        
        Published on 2008-09-16T12:15:45Z
        Indexed on 
            2010/03/25
            5:53 UTC
        
        
        Read the original article
        Hit count: 421
        
I have just found a static inner interface in our code-base.
class Foo {
    public static interface Bar {
        /* snip */
    }
    /* snip */
}
I have never seen this before. The original developer is out of reach. Therefore I have to ask SO:
What are the semantics behind a static interface? What would change, if I remove the static? Why would anyone do this?
© Stack Overflow or respective owner