Yes, Since the state of the immutable objects can not be changed once they are created they are automatically synchronized/thread-safe.
Some Of Immutable Classes In Java :
All wrapper classes in java.lang are immutable –
String, Integer, Boolean, Character, Byte, Short, Long, Float, Double, BigDecimal, BigInteger
Some Of Immutable Classes In Java :
All wrapper classes in java.lang are immutable –
String, Integer, Boolean, Character, Byte, Short, Long, Float, Double, BigDecimal, BigInteger
Posted in: