• 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

Question 66 of Quiz B of MasterExam of K & B

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is wrong it says in the CD. Can anyone please Clarify.

When the compiler gets the command-line argument that instructs it to construct any missing directories it needs, a destination directory must not be included in the command-line.
 
Ranch Hand
Posts: 394
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Mushraf, please let us know as much as possible the EXACT part of the above statement that you dont understand, like this it is easier for us to help.

Regards

Ikpefua
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found that a poorly worded question.
By "command-line argument that instructs it to construct any missing directories it needs" it means the -d arguement. The missing directories are the package directories. But -d needs a destination. If one compiles without(edit) the flag then the .class file will be in the current dir and not in the correct directory structure- i.e in the directory structure of the package.
 
Ranch Hand
Posts: 211
Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mushraf Khan wrote:

When the compiler gets the command-line argument that instructs it to construct any missing directories it needs, a destination directory must not be included in the command-line.




Yes the Destination Directory Should always be present.....otherwise a compiler error......Regards Sagar.
 
Mushraf Khan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry about the poorly worded question. Will be very clear and precise in wordings henceforth. My mistake. Thanks a lot for the explanation.
 
Eoin Brosnan
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mushraf Khan wrote:Sorry about the poorly worded question. Will be very clear and precise in wordings henceforth. My mistake. Thanks a lot for the explanation.



Hey Mushraf.
Sorry, I didn't mean that your question was poorly worded, I meant that the question itself was a bit confusing! There is no command-line argument "that instructs it to construct any missing directories it needs", that is just a bi-product of -d. So sorry again about the confusion tha I created
 
Yup, yup, yup. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic