From whizlabs
Output?
I thought the answer to be unpredictable as both the threads are syncornized on their own strint str,but the explanation in the mock says that since the str is a
string so there will be only one sring object(in string pool) on which both of the threads will be syncronized.