Question 92 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question 92 of 130 from exam 1Z0-809: Java SE 8 Programmer II

Question

Given:

public class Job {
String name;
Integer cost;
Job(String name, Integer cost) {
this.name = name;
this.cost = cost;
}
String getName() { return name; }
int getCost() { return cost; }
public static void main(String[] args) {
Job j1 = new Job("IT", null);
Doublesupplier jS1 = j1::getCost;
System.out .print1n(j1.getName() + ":" + jS1.getAsDouble());

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.