Why Animal constructor is not being called by the declaration of the array? LINE 12
Isn't 10 instances of Animal class is being created with this line?
package javaapplication;
class Animal
{
Animal() { System.out.println("Animal Constructor");}
}
public class Main
{
public static void main(String[] args)
{
Animal[] animal_obj = new Animal[10];
}
}