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."
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.