exam questions

Exam 1z0-809 All Questions

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

Exam 1z0-809 topic 1 question 150 discussion

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

Given the code fragment:

Which code fragment, when inserted at line 7, enables printing 100?

  • A. Function<Integer> funRef = e ""> e + 10; Integer result = funRef.apply(value);
  • B. IntFunction funRef = e ""> e + 10; Integer result = funRef.apply (10);
  • C. ToIntFunction<Integer> funRef = e ""> e + 10; int result = funRef.applyAsInt (value);
  • D. ToIntFunction funRef = e ""> e + 10; int result = funRef.apply (value);
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
jduarte
Highly Voted 3 years, 6 months ago
Answer C.Tested
upvoted 6 times
...
steefaand
Most Recent 5 months, 4 weeks ago
Selected Answer: C
C is answer.
upvoted 1 times
...
duydn
10 months, 2 weeks ago
Selected Answer: C
C is correct, tested
upvoted 1 times
...
WilsonKKerll
2 years, 4 months ago
Answer is C. A should write Function<Integer, Integer> funRef2 = e -> e + 10;
upvoted 1 times
...
Svetleto13
3 years, 2 months ago
C,tested
upvoted 3 times
...
jduarte
3 years, 6 months ago
The correct answer is C
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago