Arrays of primitives have elements that are initialized to default values. Arrays of objects will have the value null in each element. public class MainClass{ float[] diameters = {1.1f, 2.2f, 3.3f, 4.4f, 5.5f}; }