title: method reference getting error : Ambiguous, both 'multiply(BigDecimal)' and 'multiply(BigDecimal, MathContext)' match
body: <p>I want to create a generic method where i can pass below BinaryOperatior as a parameter in the method for Arithmetic operation based on binary operator parameter do the arithmetic operation and then return the result but I am getting error like Ambiguous, both 'multiply(BigDecimal)' and 'multiply(BigDecimal, MathContext)' match</p>
  <p>I know this error come because overloaded method inside Bigdecimal for multiply, subtract, etc but how to solve this problem or how can i use this?</p>
  <pre><code>BinaryOperator ao1=  BigDecimal::subtract;
  BinaryOperator ao2=  BigDecimal::multiply;
  </code></pre>
  <p>See below images attached for referance:</p>
  <p><a href="https://i.stack.imgur.com/mNKm6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mNKm6.png" alt="enter image description here" /></a></p>
  <p>Pleas help how can do this?
  Thanks in advance!</p>