Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Does String is thread-safe in Java?

Category: Java

Strings are immutable, so we can’t change its value in program. Hence it’s thread-safe and can be safely used in multi-threaded environment.

Leave a Reply

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