Given the code fragment:
What is the result?
Given the code fragment:
What is the result?
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].
D,tested
D is the answer
D is correct. First filter removed JSP, second Oracle.