nerdexam
Oracle

1Z0-815 · Question #117

Which two statements are correct about modules in Java? (Choose two.)

The correct answer is C. A module must be declared in module-info.java file. E. By default, modules can access each other as long as they run in the same folder. See the full explanation below for the reasoning.

Question

Which two statements are correct about modules in Java? (Choose two.)

Options

  • Ajava.base exports all of the Java platforms core packages.
  • Bmodule-info.java can be placed in any folder inside module-path.
  • CA module must be declared in module-info.java file.
  • Dmodule-info.java cannot be empty.
  • EBy default, modules can access each other as long as they run in the same folder.

How the community answered

(43 responses)
  • A
    9% (4)
  • B
    5% (2)
  • C
    84% (36)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice