This week's book giveaway is in the Go forum.
We're giving away four copies of Head First Go and have Jay McGavren on-line!
See this thread for details.
Win a copy of Head First Go this week in the Go 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
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

The answer is partially wrong, on page 313 (Java OCA 8 Programmer I Study Guide)  RSS feed

 
Greenhorn
Posts: 21
Chrome IntelliJ IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The final answer is said to be "before catch finally done" but regarding the snippet I think it should be "beforecatchfinallydone" with no middle whitespaces.
 
Sheriff
Posts: 11604
178
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Saad Benbouzid wrote:The final answer is said to be "before catch finally done" but regarding the snippet I think it should be "beforecatchfinallydone" with no middle whitespaces.


True! But based on my copy of the study guide, it's not on page 359 but on page 313.

Adding a space to each of the strings concatenated to result will make the answer spot-on
 
Saad Benbouzid
Greenhorn
Posts: 21
Chrome IntelliJ IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed it's on page 313, my bad sorry.
I've been confused by my PDF reader, displaying "313 (359 on 435)".
 
Roel De Nijs
Sheriff
Posts: 11604
178
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Saad Benbouzid wrote:Indeed it's on page 313, my bad sorry.


No problem! I updated the title of this topic accordingly. Hope that's ok with you!
 
author & internet detective
Posts: 39175
724
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Added to the errata. Thanks. This was a lesson learned for me - not to use spaces at the end of such outputs.
 
Roel De Nijs
Sheriff
Posts: 11604
178
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:This was a lesson learned for me - not to use spaces at the end of such outputs.


You definitely learnt it the hard way
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!