Question: are arrays initialized to zero in java?
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 byte, the default value is zero, that is, the value of (byte)0 . ... For type float, the default value is positive zero, that is, 0.0f .