READ Free Dumps For Oracle- 1z0-851
Question ID 3928 | A programmer must create a generic class MinMax and the type parameter of MinMax must implement Comparable. Which implementation of MinMax will compile? |
Option A | A. class MinMax<E extends Comparable<E>> { |
Option B | B. class MinMax<E implements Comparable<E>> { |
Option C | C. class MinMax<E extends Comparable<E>> { |
Option D | D. class MinMax<E implements Comparable<E>> { |
Correct Answer | A |
Question ID 3929 | Given: |
Option A | A. list.add("foo"); |
Option B | B. Object o = list; |
Option C | C. String s = list.get(0); |
Option D | D. list = new ArrayList<String>(); |
Option E | E. list = new ArrayList<Object>(); |
Correct Answer | B,C,D |