Home » JAVA Programming » Basic Datatypes » Question
  1. What is the limitation of toString() method of BigDecimal?
    1. There is no limitation
    2. toString uses scientific notation
    3. toString returns the number in expanded form
    4. toString returns null
    5. None of these
Correct Option: B

toString() of BigDecimal uses scientific notation to represent numbers known as canonical representation. We must use toPlainString() to avoid scientific notation.



Your comments will be displayed only after manual approval.