title: How many cpu cycles an object creation takes in java?
body: <p>I am curious how many cpu cycle or time does it takes to create an object of class that has no field in java? I was disscussing it with colleague whether it would be good idea to create new object for unique way to reffer something or create uuid, in his defence he said that creating object is very light weight in java these days, which I also agree.</p>
  
  <p>But question is how can it compare to something completely different like uuid generation?</p>
  
  <p>Hence, the doubt how much cpu cycles does it takes to allocate object &amp; what are exact steps involved?</p>