Assuming the class compiles, how many variables defined in the class or method are in scope on the line marked // SCOPE on line 14?
Anonymous Quiz
12%
2
12%
3
20%
4
17%
5
8%
6
18%
7
14%
None of the above
What is the output of the program?
Anonymous Quiz
42%
0
23%
Compilation error due to line 1
11%
Compilation error due to line 2
11%
Compilation error due to line 1 and line 2
9%
Runtime exception will be thrown
5%
None of the above
Which of these statements is true about the code?
Anonymous Quiz
19%
The code does not compile because of one of the variables named x
18%
The code does not compile because of one of the variables named y
19%
The code does not compile for another reason
23%
The code compiles, and the var in each lambda refers to the same type
22%
The code compiles, and the var in each lambda refers to a different type
How many lines does the code output?
Anonymous Quiz
8%
0
25%
2
40%
4
18%
The code does not compile
5%
A runtime exception is thrown
5%
None of the mentioned