nerdexam
Oracle

1Z0-804 · Question #130

Given: What is the result?

The correct answer is B. Compilation fails at line 9. Class Snooker is public. Should be declared in a separate file. // Line 9 getCategory() >>> GetCategory() Line 13

Generics and Collections

Question

Given:

What is the result?

Exhibit

1Z0-804 question #130 exhibit

Options

  • ACue sports, Cue sports
  • BCompilation fails at line 9
  • CCompilation fails at line 11
  • DCompilation fails at line 12
  • ECompilation fails at line 13

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    76% (29)
  • C
    3% (1)
  • D
    13% (5)
  • E
    5% (2)

Explanation

Class Snooker is public. Should be declared in a separate file. // Line 9 getCategory() >>> GetCategory() Line 13

Topics

#generics#bounded types#compilation#type bounds

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice