Use setScale() for rounding. Frame the concept in practical terms so you can explain it during interview discussion.
BigDecimal requires specifying the rounding mode with `setScale()`. For example, `price.setScale(2, RoundingMode.HALF_UP);` ensures two decimal places for currency.
Additional Notes
How to handle rounding with BigDecimal?
Track: Java
Topic: Core Java
Focus: Numeric Types and Money Basics
Topics:Core JavaJavaNumeric Types and Money Basics