title: Is object creation a bottleneck in Java in multithreaded environment?
body: <p>Based on the understanding from the following:</p>
  
  <p><a href="https://stackoverflow.com/questions/873792/where-is-allocated-variable-reference-in-stack-or-in-the-heap">Where is allocated variable reference, in stack or in the heap?</a></p>
  
  <p>I was wondering since all the objects are created on the common heap. If multiple threads create objects then to prevent data corruption there has to be some serialization that must be happening to prevent the multiple threads from creating objects at same locations. Now, with a large number of threads this serialization would cause a big bottleneck. How does Java avoid this bottleneck? Or am I missing something?</p>
  
  <p>Any help appreciated.</p>