public class ArrayDefaultValues { public static void main(String[] args) { // TODO Auto-generated method stub /* Without initializing the values for the elements in the array, Java will assign some default values * based on the types of the elements * Integer values – 0 * Floating point values - 0.0 * Boolean values – false * Class type values - null*/ int[] b = new int[5]; for(int bb:b) { System.out.println(bb); } boolean[] c = new boolean[3]; for(boolean cc:c) { System.out.println(cc); } } }