ExamQuestions.com

Register
Login
Java SE 8 Programmer II Exam Questions

Oracle

Java SE 8 Programmer II

114 / 130

Question 114:

Given: 
image
Which option fails? 

Answer options:

A. Foo<String, Integer> mark = new Foo<String, Integer> ("Steve", 100);
B. Foo<String, String> pair = Foo.<String>twice ("Hello World!");
C. Foo<Object, Object> percentage = new Foo<String, Integer>("Steve", 100);
D. Foo<String, String> grade = new Foo <> ("John", "A");