What is the output of the code?
Anonymous Quiz
13%
2
10%
4
34%
6
18%
The code will not compile because of line 5
17%
The code will not compile because of line 6
8%
The code will not compile because of line 8
What is the result of the code?
Anonymous Quiz
21%
Bird is flying
35%
Pelican is flying
26%
The code will not compile because of line 4
6%
The code will not compile because of line 5
12%
The code will not compile because of line 9
Which exception will the code throw?
Anonymous Quiz
10%
ArrayIndexOutOfBoundsException
39%
ClassCastException
21%
IllegalArgumentException
13%
NumberFormatException
17%
None of the above
What is printed besides the stack trace caused by the NullPointerException from line 16?
Anonymous Quiz
15%
AE
26%
AEBCD
26%
AEC
20%
AECD
14%
No output appears other than the stack trace
What is the output of the following snippet, assuming a and b are both 0?
Anonymous Quiz
9%
-1
13%
0
17%
done-1
21%
done0
31%
The code does not compile
9%
An uncaught exception is thrown