exam questions

Exam 1z0-809 All Questions

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

Exam 1z0-809 topic 1 question 15 discussion

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

java.util.function.Function interface?
Which statement is true about the single abstract method of the void.

  • A. It accepts one argument and returns boolean.
  • B. It accepts one argument and returns
  • C. It accepts one argument and always produces a result of the same type as the argument.
  • D. It accepts an argument and produces a result of any data type.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference: http://winterbe.com/posts/2014/03/16/java-8-tutorial/ (functions)

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
M_Jawad
Highly Voted 4 years, 6 months ago
Answer is D The function method accepts type T argument and return a generic type R, which could be any data type.
upvoted 6 times
...
iSnover
Most Recent 5 months, 3 weeks ago
Selected Answer: D
Answer is D. The function method accepts type argument and return a generic type, which could be any data type.
upvoted 1 times
...
steefaand
5 months, 3 weeks ago
Selected Answer: D
D is true.
upvoted 1 times
...
adnano1234
4 years, 6 months ago
Function<String, Integer> toInteger = Integer::valueOf So it takes one argument and return as result one of any types
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