What is the output of the following program?
public class Main { public static void main(String args[]) { Object[] o = new Object[2]; byte[] b = new byte[2]; System.out.print(o[0]); System.out.println(b[1]); } }
D.
The default value of an Object is null and the default value of a byte is 0.