Skip to content
Sharp

Core Java · interview question

Which statement best matches the chapter's guidance on price types?

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

Correct answer

B. double is a fine teaching shortcut early on, but production money code often moves to BigDecimal

Why

Early examples may use double to keep syntax simple, but the lesson also teaches why money needs more care later. Production code often prefers BigDecimal so decimal arithmetic and rounding are explicit.

Test yourself on Core Java

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

Start free test
All Core Java questions →