nerdexam
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)
  • A
    9% (3)
  • B
    12% (4)
  • C
    3% (1)
  • D
    76% (25)

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice