• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Errata for OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide - page 473

 
Ranch Hand
Posts: 44
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

At the end of the section Making Directories with createDirectory() and createDirectories() on page 473, I read:

...such as /bison, /bison/field, or /bison/pasture


I think it should be the following:

...such as /bison, /bison/field, or /bison/field/pasture



Regards,
Guillaume
 
author & internet detective
Posts: 39343
755
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Confirmed and logged. Good attention to detail!
 
Greenhorn
Posts: 3
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Didn’t want to start a new thread for this, and not sure it's really a “mistake” per se, but maybe worded a bit confusingly.

Page 473 for the "Making Directories with createDirectory() and createDirectories()" section, second paragraph:



“The directory-creation methods can throw the checked IOException, such as when the directory cannot be created or already exists”





In fact, if the directory already exists, only createDirectory() will throw an exception.  createDirectories() will not throw the exception in this situation.  It still does, of course, throw an IOException for other situations.
 
Jeanne Boyarsky
author & internet detective
Posts: 39343
755
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave,
Welcome to CodeRanch!

Thanks for reporting that. I logged it on the private list Scott and I maintain of "things that could be clearer" so we can word that another way in our OCP 11 book!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!