The ________ data type in Java can store decimal numbers up to 15 decimal places.

  • BigDecimal
  • double
  • float
  • long
In Java, the BigDecimal data type is used to store decimal numbers with precision up to 15 decimal places. It is commonly used in financial and scientific applications where high precision is required. The float and double types have limited precision and are not suitable for this purpose.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *