What type is BigDecimal in Java?
BigDecimal is a class in Java that is used to accurately represent decimal numbers. It can handle large integers and decimals, and provides a range of mathematical operations such as addition, subtraction, multiplication, division, remainder, rounding, etc. Unlike primitive floating-point data types, BigDecimal can precisely represent numbers with any number of decimal places without losing precision.