Why string is not thread safe?
Answer / Anjani Kumar Mishra
"Strings in Java are immutable, meaning once created, they cannot be modified. However, their internal representation can still be shared among multiple threads without proper synchronization, which may lead to inconsistencies and unexpected results."
| Is This Answer Correct ? | 0 Yes | 0 No |
describe synchronization in respect to multithreading? : Java thread
What classes of exceptions, thrown by a throw statement?
What is the difference between I ++ and ++ I in java?
What is difference between throw and throws ?
What is the purpose of finalization?
How can we use primitive data types as objects?
What is the size of integer?
What will happen if we declare don’t declare the main as static?
How do you check if two given string are anagrams?
What's the purpose of using break in each case of switch statement?
What is the difference between array and arraylist? what is the difference between arraylist and linkedlist?
What is HashTable?