Question: are java arrays initialized to 0?
Answer: From the Java Language Specification: Each class variable, instance variable, or array component is initialized with a default value when it is created (§15.9, §15.10): ... For type short, the default value is zero, that is, the value of (short)0 . For type int, the default value is zero, that is, 0 .