Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Saad Benbouzid
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.
 
Roel De Nijs
Sheriff
Posts: 10662
144
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: 10662
144
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!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
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: 10662
144
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic