Valid 1z0-813 Dumps shared by ExamDiscuss.com for Helping Passing 1z0-813 Exam! ExamDiscuss.com now offer the newest 1z0-813 exam dumps, the ExamDiscuss.com 1z0-813 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1z0-813 dumps with Test Engine here:
You are asked to implement an interface that processes a batch of transaction objects and returns a discounted value for each transaction as a doubleprimitive value. Which interface can you use to accomplish this task?
Correct Answer: A
Explanation/Reference: Explanation: The Interface ToDoubleFunction is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference. It represents a function that produces a double-valued result. This is the double-producing primitive specialization for Function. Incorrect Answers: B: The Interface DoubleSupplier is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference. It represents a supplier of double-valued results. This is the double-producing primitive specialization of Supplier. C: The Interface DoubleFunction is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference. It represents a function that accepts a double-valued argument and produces a result. D: The Interface DoubleConsumer represents an operation that accepts a single double-valued argument and returns no result. Reference: http://docs.oracle.com/javase/8/docs/api/java/util/function/ToDoubleFunction.html