Basically, it will allocated with size 10, and also all the unassigned indexes contains a value of 0 for the datatype int.
I hope this will help.
Want to become a Java expert? join Java Course now!!
Want to know more about Java? Watch this video on Java Training | Java Course for Beginners: