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
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)- A3% (1)
- B76% (29)
- C3% (1)
- D13% (5)
- E5% (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.
