title: Array of Interface in Java
body: <p>I have an interface.</p>
  
  <pre><code>public interface Module {
          void init();
          void actions();
  }
  </code></pre>
  
  <p>What happens when i try to create an array like this?</p>
  
  <pre><code>Module[] instances = new Module[20]
  </code></pre>
  
  <p>How can i implement this array?</p>