This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General 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 ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Two little bugs in Kathy & Bert OCA java SE 8 Guide. First chapter.

Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers!
I'm re-reading Kathy & Bert's OCA JAVA SE 8 Exam Guide.
Very accurated book, you can see many people work hard on it.
Anyway I cought two small bugs and I post here because there're no other place to report to.
One is 'organizational' and one technical.

The first one is at page 58 in the first on "the job!" paragraph.
The last sentence: "[...]Java provides a wide variety of Collection types to address these situations, but the only collection type on the exam is ArrayList, and Chapter 5 discusses ArrayList in more detail."
It's the Chapter 6 that discusses ArrayList.

The second one is at page 50 where it is discussed var-arg parameter, the basic sintax list-point:
"To declare a method using var-arg parameter, you follow the type with an ellipsis (...), a space, and the nameof array that will hold the parameters received."
In fact you can omit the space or you can put a space between the type and the ellipsis, or you can put as many spaces as you want around the ellipsis.
At least javac 1.8.0_31 enables the following code:

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!