Question: 1 When is a constructor executed?

  1. when an object is created from a class using the new keyword
  2. when an class is defined using the class keyword
  3. every time an object is referenced
  4. when an object is created from a class using the create keyword

Answer: The correct answer of the above question is Option A:when an object is created from a class using the new keyword