nerdexam
Oracle

1Z0-851 · Question #3

1Z0-851 Question #3: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #3. The question stem and answer options stay visible for context.

Question

Given: 11. //insert code here 12. private N min, max; 13. public N getMin() { return min; } 14. public N getMax() { return max; } 15. public void add(N added) { 16. if (min == null || added.doubleValue() < min.doubleValue()) 17. min = added; 18. if (max == null || added.doubleValue() > max.doubleValue()) 19 max = added; 20. } 21. } Which two, inserted at line 11, will allow the code to compile? (Choose two.)

Options

  • Apublic class MinMax<?> {
  • Bpublic class MinMax<? extends Number> {
  • Cpublic class MinMax<N extends Object> {
  • Dpublic class MinMax<N extends Number> {
  • Epublic class MinMax<? extends Object> {
  • Fpublic class MinMax<N extends Integer> {

Unlock 1Z0-851 to see the answer

You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-851 Practice