BigDecimal firstNumber = new BigDecimal("10.45"); BigDecimal secondNumber = new BigDecimal("5.20"); BigDecimal result = firstNumber.subtract(secondNumber); System.out.println(result); // Output: 5.25In this example, the BigDecimal.subtract() method subtracts the second number (subtrahend) from the first number, and returns the result in a new BigDecimal instance. This method belongs to the java.math package library, which is a part of the Java Standard Library.