title: Array initialization with default constructor
body: <pre><code>public class Sample
  {
       static int count = 0;
       public int abc;
       public Sample()
       {
          abc = ++Sample.count;
       }
  }
  </code></pre>
  
  <p>I want to create an array of above class, and want each element in the array to be initialized by invoking the default constructor, so that each element can have different <code>abc</code>.So I did this:</p>
  
  <pre><code>Sample[] samples = new Sample[100];
  </code></pre>
  
  <p>But this doesn't do what I think it should do. It seems this way the default constructor is not getting called. How to invoke default constructor when creating an array?</p>
  
  <p>I also would like to know what does the above statement do?</p>