title: The type Queue is not generic; it cannot be parameterized with arguments <Customer>
body: <p>Defining objQueue also gives the same result.</p>
  
  <pre><code>public class objQueue extends Vector&lt;Object&gt;
  {
  ...
  }
  
  ...
  
  objQueue&lt;Customer&gt;[] line=new objQueue&lt;Customer&gt;[num]; //error given on this line
  </code></pre>
  
  <p>I changed it to public <code>class objQueue&lt;Object&gt; extends Vector&lt;Object&gt;</code>, but now it says <code>Cannot create a generic array of objQueue&lt;Customer&gt;</code>. I want to define my own queue, should I name Queue or something else to avoid conflicts? I'm using <code>import java.util.*;</code></p>
  
  <p>If I change it to <code>objQueue&lt;Customer&gt; [] line=new objQueue[num];</code> it gives a warning instead: Type safety: The expression of type objQueue[] needs unchecked conversion to conform to objQueue[]</p>