Oracle
1Z0-804 · Question #7
Given: Which fragment, inserted in the Books interface, enables the code to compile?
The correct answer is D. public String type = "Fiction". See the full explanation below for the reasoning.
Question
Given:
Which fragment, inserted in the Books interface, enables the code to compile?
Options
- Apublic abstract String type;
- Bpublic static String type;
- Cpublic String type = "Fiction";
- Dpublic String type = "Fiction";
How the community answered
(33 responses)- A9% (3)
- B12% (4)
- C3% (1)
- D76% (25)
Community Discussion
No community discussion yet for this question.