Cannot apply BigDecimal to constructor : <p><strong>I have object like:</strong></p>

<pre><code>import java.math.BigDecimal;
public class Obj {
    BigDecimal Sal;
    int EMPID;

    public Obj(BigDecimal Sal, int EMPID) {
        this.Sal= Sal;
        this.EMPID= EMPID;
    }
}
</code></pre>

<p>Now I wanna create Instance of Obj with constructor call.</p>

<pre><code>Obj a = new Obj(45,34); // getting error here
</code></pre>

<p>Tried this also: <code>Obj a = new Obj( (BigDecimal) 45,34);</code> </p>

<p>Error: </p>

<blockquote>
  <p>Obj (java.math.BigDecimal, int) in Obj cannot be applied to (int, int)</p>
</blockquote>

<p> </p>
