Array elements get their defualt value when array is initialized. when we declare array i.e. int  x; it is null a this moment. When we say x = new int ; now all the 6 elements of array will get thier defualt value
"Know where to find the solution and how to use it - that's the secret of success."
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database