4 ms·
That's nonsense. I can't think of any realistic examples in which it would be useful for multiple threads to write to the same StringBuffer. You might as well
by Tharkun 10y ago
That's nonsense. I can't think of any realistic examples in which it would be useful for multiple threads to write to the same StringBuffer.
You might as well sprinke random and pointless synchronized blocks around your code. The magical synchronization fairy will give you a false sense of correctness.