• 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

Is [source files] optional as per Sierra and Bates - OCA Java SE 8 Programmer I ?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As per the book Sierra and Bates - OCA Java SE 8 Programmer I Exam Guide (Exams 1Z0-808)-1, page 39, in the attached screenshot:

Is [source files] argument a optional argument?

I mean, when I am omitting that argument, I'm getting below error on CLI:



And just wondering, what would one compile, if there are no source files ?

I guess that it should be atleast one source file should be there, right?
Screenshot-from-2019-12-16-15-40-28.png
[Thumbnail for Screenshot-from-2019-12-16-15-40-28.png]
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a look at the javac tool documentation (here for JDK8/Windows®). That says one or more file names, so maybe optional isn't quite the right word.
 
Lokeshwar Tailor
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah. It looks like an erratum in the book.
 
Don't MAKE me come back there with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic