• 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

Mock explanations #17 of chapter 2, on page 338 (Java OCA 8 Programmer I Study Guide)  RSS feed

 
Ranch Hand
Posts: 207
27
Java jQuery Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My English is not good enough, maybe I understand anything wrongly, I apologize for that in advance.

On page 338, the answer #17, third sentence:

“Since i is not 8, keepGoing is false, and the loop continues.”


Underlined expression should be:
“keepGoing is true” or “keepGoing is not false”.

P.S. On errata page:
1. Minor Typos, #17: “page 106” should be “page 107”
2. Typos in mock explanations, #3: “page 334” should be “page 335”
 
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

Mushfiq Mammadov wrote:On page 338, the answer #17, third sentence:

“Since i is not 8, keepGoing is false, and the loop continues.”


Underlined expression should be:
“keepGoing is true” or “keepGoing is not false”.


Nothing wrong with your English Just a typo. Or maybe the sentence was 1st a negation and then it was negated (because positive statements are easier to comprehend), but the author forgot to negate the boolean as well.

Only if i is equal to 8, keepGoing will be set to false. In the 1st iteration, i is 9, so keepGoing is not set to false (and thus still true).

Hope it helps!
Kind regards,
Roel
 
author & internet detective
Marshal
Posts: 38681
677
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Noted both the negation and the two errata corrections.

Mushfiq Mammadov wrote:My English is not good enough, maybe I understand anything wrongly,


You didn't understand wrong. But this reminds me of something - if you come across a phrase in the book that is confusing to a non-native English speaker, please do let me know. Even if it isn't wrong, some phrasings are awkward.
 
Mushfiq Mammadov
Ranch Hand
Posts: 207
27
Java jQuery Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Roel De Nijs wrote:Nothing wrong with your English Just a typo. Or maybe the sentence was 1st a negation and then it was negated (because positive statements are easier to comprehend), but the author forgot to negate the boolean as well.


Thanks, Roel

Jeanne Boyarsky wrote:You didn't understand wrong. But this reminds me of something - if you come across a phrase in the book that is confusing to a non-native English speaker, please do let me know. Even if it isn't wrong, some phrasings are awkward.


Ok, Jeanne. I will inform you if I come across confusing phrase. Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!