Arijit, this is the problem:
I read that whether an array is declared or initialized, in both the cases, the array elements are initialized to default values.
The variable declared as an array follows the same path regarding intialization as any reference variable. It would be initialized to null if it was declared as a field of the object. Being a local variable it will not be initialized by its mere declaration. However the elements of the array are another story. Whenever the array is
created, either as a member or local to a method, its elements will be initialized to its corresponding default value.