QuestionQ49

Java Platform Module System

Which two statements about modules in the Java Platform Module System are true?

Choose two
  • A The module-info.java has to be located in the Java bin directory.
  • B They are a group of related Java packages and resources such as XML files, images, and properties file.
  • C The classes in a module are loaded using class-path.
  • D They support versioning of Java modules.
  • E Packages within the module are hidden by default.
Explanation

A Java Platform Module System module is a collection of related Java packages and resources, such as XML files, images, and properties files. Its packages are encapsulated by default and must be explicitly exported to be accessible from other modules.

Community Discussion

No comments yet. Be the first to start the discussion!