• 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
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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: 76412
365
  • 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.
 
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic