title: Compiler Error when Interface within Inner Class
body: <p>I want to declare an interface inside an inner class, which shows compiler error message "inner classes cannot have static declarations". </p>
  
  <pre><code>public class Apple {       
      //...
  
      public class InnerApple{
      //...
  
          public interface InnerInterface{
              //Error: inner classes cannot have static declarations
          }
      }
  }
  </code></pre>
  
  <p>Does it mean interface is actually static in Java?</p>
  
  <p>I'm using Java 1.7. Thanks!!</p>