Is Immutable objects Thread-safe ?

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


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email