-
Which of the following is the advantage of BigDecimal over double?
-
- Precision
- Garbage creation
- Memory usage
- Syntax
- None of these
Correct Option: A
BigDecimal has unnatural syntax, needs more memory and creates great amount of garbage. But it has high precision which is useful for some calculations like money.