• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sybex OCP11 - Complete Version - Chapter 1 - Review Questions 14 - Errata

 
Rancher
Posts: 129
15
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeanne,

The review question #14, Chapter 1:

Which options are valid on the jar command without considering module options? (Choose all that apply.)
A. -c
B. -C
C. -cp
D. -d
E. -f
F. -p


Corresponding Answer:

A, B, C, E. When creating a jar file, you use the options -cf or -cvf, making options A and E correct. The jar command allows the use of the classpath, making option C correct. It also allows the specification of a directory using -C, making option B correct. Options D and F are incorrect because -d and -p are used for modules.


However, according to the Java Tools Reference, the jar command doesn't support -cp option.
 
Frank Mi
Rancher
Posts: 129
15
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just checked the errata again, it is not in the complete version errata.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My copy of the printed complete study guide says the answers are A/B/E (on page 1107)

There was another errata report of something that was fixed in my paper book. What version of the book are you using? Kindle? Safari? Etc
 
Frank Mi
Rancher
Posts: 129
15
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:What version of the book are you using?



Sorry, I forgot to mention. It is the kindle version.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic