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
3 months, 2 weeks agoOmnisumem
8 months, 1 week agoStavok
9 months, 1 week agotmuralimanohar
9 months, 3 weeks agoMukes877
10 months, 3 weeks agoObalt
1 year, 2 months ago