Home » JAVA Programming » Basic Datatypes » Question
  1. Which of the following is the advantage of BigDecimal over double?
    1. Precision
    2. Garbage creation
    3. Memory usage
    4. Syntax
    5. 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.



Your comments will be displayed only after manual approval.