reference to call ambiguous in java
<pre><code>class A {

    public void printFirst(int... va) throws IOException{
        System.out.print("A");
    }

    public static void main(String args[]) {
        try {
            new B().printFirst(2);
        } catch (Exception ex) {
        }
    }
}


class B extends A {

    //@Override
    public void printFirst(float... va) throws IOException{
        System.out.print("B");

    }
}
</code></pre>

<p>Why, it is showing <strong>reference to call ambiguous</strong> ??</p>
