What is the output of the following program?
public class Main { public static void main(String args[]) { boolean[] b = new boolean[2]; double[] d = new double[2]; System.out.print(b[0]); System.out.println(d[1]); } }
C.
The default value of a boolean is false and the default value of a double is 0.0.