About Question enthuware.ocpjp.v8.2.1785 :
Moderators: Site Manager, fjwalraven
-
- Posts: 54
- Joined: Thu Mar 03, 2016 1:26 pm
- Contact:
About Question enthuware.ocpjp.v8.2.1785 :
The explanation doesn't give us the reason why none of the answers is correct. It is because the Predicate's test() in 1 and 4 and the call to equals() in 2 and 3 always return false, whichever element we apply them to. If we replaced equals() with contains() or startsWith(), they would all be correct.
-
- Site Admin
- Posts: 10402
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1785 :
Explanation has now been added.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 6 guests