What is the result of the class?
Anonymous Quiz
42%
match
14%
not match
16%
Compiler error on line 8
14%
Compiler error on lines 10
7%
Compiler error on lines 11
6%
A runtime exception is thrown
What is the result of the code?
Anonymous Quiz
10%
0 1 –2
16%
0 1 –3
18%
2 1 –2
15%
2 1 –3
20%
None of the above
20%
The code doesn’t compile
Which of the following statements about this program is correct?
Anonymous Quiz
12%
It compiles and prints 14
37%
It compiles and prints 15
11%
The code will not compile because of line 4
18%
The code will not compile because of line 5
17%
The code will not compile because of line 6
5%
None of the above
What is the output of the code?
Anonymous Quiz
9%
Instance block, Method, Static block, Constructor
14%
Method, Constructor, Instance block, Static block
15%
Static block, Method, Instance block, Constructor
36%
Static block, Instance block, Constructor, Method
12%
None of the above
13%
The code doesn’t compile
What is the output of the code?
Anonymous Quiz
38%
apple banana
29%
banana apple
16%
The code doesn't compile
14%
Runtime exception is thrown
3%
None of the above
What does the code output when run as java Duck Duck Goose?
Anonymous Quiz
15%
Duck Goose
26%
Duck ArrayIndexOutOfBoundsException
8%
Goose
16%
Goose ArrayIndexOutOfBoundsException
22%
Code doesn't compile
13%
None of the above
What is the output of executing the class?
Anonymous Quiz
11%
7-0-2-1-
7%
7-0-1-
13%
0-7-2-1-
28%
7-0-2-4-
6%
0-7-1-
18%
The class does not compile because of line 3
6%
The class does not compile because of line 4
10%
None of the above