QuestionQ69

Java Platform Module System

Assume an automatic module is on the module path from the JAR file display-ascii-0.2.jar.

What name is assigned to the automatic module based on that JAR file?

  • A display-ascii-0
  • B display-ascii
  • C display.ascii
  • D display-ascii-0.2
Explanation

Java derives an automatic module name by removing the .jar suffix and the version segment that starts with -0.2, then converting remaining non-alphanumeric characters, including hyphens, to dots. The resulting module name is display.ascii.

Learn more

Community Discussion

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