A. foo( n -> Integer.toHexString(n) ) is a correct answer because it uses a lambda expression to define the implementation of the Function interface. The lambda expression takes an Integer as input and returns a String as output, which matches the expected input and output types of the Function interface.
F. foo( Integer::toHexString ) is also a correct answer because it uses a method reference to define the implementation of the Function interface. The method reference refers to the toHexString method of the Integer class, which takes an Integer as input and returns a String as output, matching the expected input and output types of the Function interface.
This section is not available anymore. Please use the main Exam Page.1z0-819 Exam Questions
Log in to ExamTopics
Sign in:
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.
ASPushkin
6 months, 3 weeks agoOmnisumem
11 months, 2 weeks agoStavok
1 year agotmuralimanohar
1 year agoMukes877
1 year, 1 month agoObalt
1 year, 5 months ago