String[] s = new String[3];
System.out.println(s[0]);What is printed?
- A
NullPointerException
- B
0
- C
(empty string)
- Dcheck_circle
null
Explanation
For arrays of object references, the default initial value is null. Printing a null reference outputs the string "null".