Exam 1z0-809 All QuestionsBrowse all questions from this exam
Question 93

Given the code fragment:

What is the result?

    Correct Answer: D

    The given code first creates a list of strings and a predicate that checks if a string contains the letter 'J'. The stream pipeline filters the list by strings that have a length greater than 3 and then further filters those strings by applying the predicate. The resulting list includes 'Java', 'J2EE', 'J2ME', and 'JSTL', all of which have a length greater than 3 and contain the letter 'J'. JSP is excluded because its length is not greater than 3. Oracle DB does not contain 'J', so it is also excluded. Therefore, the result is [Java, J2EE, J2ME, JSTL].

Discussion
Svetleto13Option: D

D,tested

asdfjhfgjuaDCVOption: D

D is the answer

steefaandOption: D

D is correct. First filter removed JSP, second Oracle.