Java.­math.­BigDecimal toString is not thread safe

BigDecimal is an immutable data type. So every method of this class should be thread safe.
But this not the case for the method toString. Calling it from multiple threads leads to strange results. Read more

Similar

Java – Type Casting

The type casting is a method of converting the value of one data type to another data type. It is also known as type conversion. In Java, there are several kinds of conversions. However, in this tutorial we will focus only on two major types. (more…)

Read more »