Skip to content
Sharp

Core Java · interview question

In which scenario might using BigDecimal be less suitable compared to other types?

Multiple choiceHardchapter-7-curatedpremiumcore-javabigdecimal-and-money
Choose one answer
Answer and explanation

Correct answer

A. High-frequency calculations requiring minimal latency.

Why

BigDecimal provides precision at the cost of performance, making it less suitable for high-frequency, low-latency calculations. In such cases, the overhead of BigDecimal might outweigh its benefits.

Test yourself on Core Java

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

Start free test
All Core Java questions →