Skip to content
Sharp

Core Java · interview question

When performing currency conversion, why choose BigDecimal over double?

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

Correct answer

A. BigDecimal provides exact precision

Why

BigDecimal provides exact precision by representing numbers exactly, which is critical in financial operations, unlike double which may introduce rounding errors.

Test yourself on Core Java

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

Start free test
All Core Java questions →