This week's book giveaways are in the Cloud and AI/ML forums.
We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Kathy Sierra's SCJP&D line numbering

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure whether this kind of thing appears on the actual exam, but I was a bit concerned about some of the questions in this book from Osborne Cert. Press. In several sample questions line numbering starts at 1, but there is no class definition etc..
In these cases I would say that compilation fails, since in other places, code snippets seem to start at some arbitrary number (which I assumed to mean that the necessary definitions are simply not shown). Is this an oversight in the book, or is it possible that on the actual exam, a code snippet can start at line 1, jump straight into code, and still compile?
 
author
Posts: 8995
19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jim -
I thought that with the newest printing we'd caught all of those - if not, sorry! In any case, on the real exam those problems won't crop up - if a code example starts with line 1 on the real exam, it will be a complete file. The real exam has lots of ways to try to trick you, but that isn't one of them .
- Bert
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!