Why stringbuilder is not thread safe in java?



Why stringbuilder is not thread safe in java?..

Answer / Kumud Kinakar

StringBuilder is not thread-safe because it does not synchronize its operations. This means that multiple threads accessing a single StringBuilder instance can lead to inconsistent results.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can we able to pass objects as an arguments in java?

1 Answers  


What are the types of java languages?

1 Answers  


What is object in java?

1 Answers  


What is application tier?

1 Answers  


What is java in detail?

1 Answers  


what is difference between requestprocessor and request dispatcher?

2 Answers   Tech Mahindra,


how many ways to create Thread and which one is good? runnable interface ot Thread class?

3 Answers   Satyam,


. What are the differences between constructor and method of a class in Java?

1 Answers  


What is anagram in java?

1 Answers  


What is mean by collections in java?

1 Answers  


Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces.

17 Answers   Hewitt,


What is the method used to get the absolute value of a number?

2 Answers  


Categories