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

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

Question

Given:

public class Foo<K, V> {
private K key;
private V values
public Foo(K key, V value) { this.key = keys this.value = value; }

public static <T> Foo<?, T> twice(T value) { return new Foo<T, T>(value, value); }

public K getKey() { return key; }
public V getValue() { return values }

Which option fails?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.