exam questions

Exam 1z0-819 All Questions

View all questions & answers for the 1z0-819 exam

Exam 1z0-819 topic 1 question 204 discussion

Actual exam question from Oracle's 1z0-819
Question #: 204
Topic #: 1
[All 1z0-819 Questions]

Which two are valid statements? (Choose two.)

  • A. BiPredicate test = (Integer x, final var y) -> (x.equals(y));
  • B. BiPredicate test = (Integer x, final Integer y) -> (x.equals(y))
  • C. BiPredicate test = (var x, final var y) -> (x.equals(y));
  • D. BiPredicate test = (final Integer x, var y) -> (x.equals(y));
  • E. BiPredicate test = (final var x, y) -> (x.equals(y));
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cathDev
5 months, 4 weeks ago
Tested Only C is correct
upvoted 1 times
...
ASPushkin
10 months ago
Selected Answer: C
answer : C B is not correct BiPredicate test = (Integer x, final Integer y) -> (x.equals(y)); BiPredicate - raw type same as BiPredicate<Object, Object> BiPredicate<Object, Object> is not a subclass of BiPredicate<Integer, Integer> but BiPredicate test = (var x, var y) = x.equals(y); is correct
upvoted 1 times
...
d7bb0b2
10 months, 3 weeks ago
Selected Answer: BC
ARE CORRECT
upvoted 1 times
...
ASPushkin
10 months, 4 weeks ago
almost same as 22
upvoted 1 times
...
ASPushkin
10 months, 4 weeks ago
see 221 (same)
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...