• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Clarification on Sybex IZO-816 Test Bank Question on Modules

 
Ranch Hand
Posts: 229
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is one question in the test bank:

A(n) _____ module can reference classes in a(n) _____ module.
Assume the package is exported as needed. (Choose all that apply).

A. automatic, named
B. automatic, unnamed
C. named, automatic
D. named, unnamed
E. unnamed, automatic
F. unnamed, named
G. None of the above.

The correct answers are supposed to be A, B, and C.

But what I think are correct are A, C, E and F. According to the book, named and automatic modules on the module path can read named/automatic modules on the module path only, so A and C are correct and B and D are incorrect. Unnamed modules on the classpath can read JARs on the module path as well as those on the classpath, so E and F are correct.

According to the errata here: Errata

"The question about which module 'can reference classes' in another module has the wrong answer. E and F are also correct." <-- so which are all the correct answers?
 
reply
    Bookmark Topic Watch Topic
  • New Topic