Override Java method generic with array
<p>I’ve a Service interface like:</p>

<pre><code>public interface Service {
    &lt;T&gt; void print(T data);
}
</code></pre>

<p>When I try to override this method with array, I’ll get compilation error and it’s fine for non array object.<br> 
I know if the type T defined at interface level, both array and non array will work fine.<br>
I'm not creating array, I just try to pass array as type.  </p>

<pre><code>public &lt;String[]&gt; void print(String[] data) //compilation error
public &lt;String&gt; void print(String data) // fine
</code></pre>

<p>Why can't I override with array? </p>