Page 1 of 1

1Z0-816 - Section Tests (10) Streams (Lambda Operations)

Posted: Wed Jul 31, 2019 10:44 am
by ewebxml
I hope I am posting this question in the correct area.
For [1Z0-816] OCP 11 Programmer 2,
Individual Tests 10 - Streams (including Lambda Operations)
For the section test 10 (which contains 10 questions) should one assume, that the correct import statements already exist at the top of the class.

For example

Code: Select all

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
Meaning, without the correct import statements, the code will not compile.
Question: Should one assume that the correct import statements have been added even though they do not appear in the exam?

Thank You.
()()()

Re: 1Z0-816 - Section Tests (10) Streams (Lambda Operations)

Posted: Wed Jul 31, 2019 11:39 am
by admin
Yes, appropriate imports are to be assumed unless the question is about import statements.

BTW, please mention the question id so that we can look it up. Section tests show questions randomly.