Skip to content
Sharp

Core Java · interview question

If you need to ensure that multiplication of two BigDecimal values is precise, which method should you use?

Multiple choiceHardchapter-1-curatedpremiumcore-javanumeric-types-and-money-basics
Choose one answer
Answer and explanation

Correct answer

B. BigDecimal.multiply()

Why

To ensure precise multiplication of BigDecimal values, use the multiply method. This method maintains the precision of the decimal values throughout the operation.

Test yourself on Core Java

A free test with instant, explained results. No account needed.

Start free test
All Core Java questions →