title: What occurs when object is created in Java?
body: <p>My teacher gave me a question: </p>
  
  <blockquote>
    <p>"What occurs when objects are created in Java".</p>
  </blockquote>
  
  <p>To the best of my knowledge, memory allocation, variable initialization and constructor method invocation happen when an object is created. </p>
  
  <p>But my teacher said that I was almost right. The 2 later things are right, except memory heap. Instead, he said the memory allocation occurs. I think that object is stored in heap, so my teacher is wrong. Do you think so? </p>