title: Array of Generic Interface
body: <p>Can we create array of generic interface in java?</p>
  
  <pre><code>interface Sample&lt;T&gt;{}
  </code></pre>
  
  <p>in other class </p>
  
  <pre><code>Sample&lt;T&gt; s[] = new Sample[2] ; // for this it shows warning
  
  Sample&lt;T&gt; s[] = new Sample&lt;T&gt;[2];// for this it shows error
  </code></pre>