nerdexam
Oracle

1Z0-815 · Question #7

Which is the correct order of possible statements in the structure of a Java class file?

The correct answer is D. package, class, import. See the full explanation below for the reasoning.

Question

Which is the correct order of possible statements in the structure of a Java class file?

Options

  • Aclass, package, import
  • Bpackage, import, class
  • Cimport, package, class
  • Dpackage, class, import
  • Eimport, class, package

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    16% (5)
  • C
    6% (2)
  • D
    71% (22)
  • E
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice