java array programs examples Example: array declaration and initialization in java int[] age = new int[5];