• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Sybex CSG Online Chapter 1 #16 errata

 
Ranch Hand
Posts: 415
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sybex CSG Online Chapter 1 #16:

Online does not accept the correct answer. "Option C" should replace Online "Option B" also.  Please see Online (top) and Print (bottom) for reference.
Untitled.png
[Thumbnail for Untitled.png]
 
Enthuware Software Support
Posts: 4478
43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All of the options are correct because there is no restriction on the location of a java source file. In other words, location of a java source file has no relation to the package statement. Usually, the source location matches the package name but it is just for convenience.
 
Charles O'Leary
Ranch Hand
Posts: 415
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Paul Anilprem wrote:All of the options are correct because there is no restriction on the location of a java source file. In other words, location of a java source file has no relation to the package statement. Usually, the source location matches the package name but it is just for convenience.


Thanks Paul!  



Jeanne and/or Scott,

I guess this question/answer ties into Moot point now since command line javac isn't on the 819 exam that I briefly glanced at just before my OP that maybe I'm just digesting.  Page 21 "Compiling and Running Code with Packages" thru  page 26 "Running a Program in One Line with Packages" are now officially off the certification table via What don’t I need to study? Correct?

 
author & internet detective
Posts: 40283
819
Eclipse IDE VI Editor Java
 
Charles O'Leary
Ranch Hand
Posts: 415
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:Correct!


Thanks Jeanne
 
I'm full of tinier men! And a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic