• 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
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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: 11338
177
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: 11338
177
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
Marshal
Posts: 38681
677
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: 11338
177
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!