Given:
What is the result?
A. abyssinian oxicat korat laperm bengal sphynx
B. abyssinian bengal korat laperm oxicat sphynx
C. sphynx oxicat laperm korat bengal abyssinian
D. nothing
Given:
What is the result?
A. 2-4
B. 0-6 1-5 2-4
C. 1-5
D. 1-5 2-4
E. The compilation fails due to an error in line 1.
F. 0-6
G. 0-6 2-4
What is the result?
A. 357
B. 35
C. 235
D. 2357
E. An ArrayIndexOutOfBoundsException is thrown at runtime.
Given:
What is the result?
A. It throws a runtime exception.
B. Value of Euler = 2.71828
C. The code does not compile.
D. Value of Euler = "2.71828"
Which two statements independently compile? (Choose two.)
A. List list = new ArrayList
B. List list = new ArrayList
C. List list = new ArrayList
D. List list = new ArrayList
E. List list = new ArrayList
Given:
What is the result?
A. Option A
B. Option B
C. Option C
D. Option D
Given:
Taking into account that the order of the elements is unpredictable, what is the output?
A. {am=2, first=1, mismatch=1, second=2}
B. {mismatch=2, am=2, first=1, second=1}
C. {l=mismatch, 2=am}
D. {mismatch=1, am=2, first=1, second=1}
var numbers = List.of(0,1,2,3,4,5,6,7,8,9);
You want to calculate the average of numbers.
Which two codes will accomplish this? (Choose two.)
A. double avg = numbers.stream().parallel().averagingDouble(a > a);
B. double avg = numbers.parallelStream().mapToInt (m > m).average().getAsDouble ();
C. double avg = numbers.stream().mapToInt (i > i).average().parallel();
D. double avg = numbers.stream().average().getAsDouble();
E. double avg = numbers.stream().collect(Collectors.averagingDouble(n > n));
Given the content: What is the result?
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
Given:
Which two lines can replace line 1 so that the Y class compiles? (Choose two.)
A. map.forEach((k, v) -> set(v)));
B. set(map.values());
C. super.set(List
D. super.set(map.values());
E. set(map)