• 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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

 
Ranch Hand
Posts: 238
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Answer to number 16, where it says: "d is the String P1D and p is the String PT24H".

It should be the other way around.
 
author & internet detective
Posts: 40392
821
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Correct. I've added it to the errata and credited you. Thanks for reporting this!
 
T Vergilio
Ranch Hand
Posts: 238
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No problem, thank you so much for sharing your knowledge with us. I had this book on pre-order and I am very excited to have it in my hands now. I'll let you know if I spot anything else as I work through it.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good morning,

I'm using this old post because I might have found an errata in the same page.  
In the #7, the answer is A, but I think that the code doesn't compile due to toRealPath() and File.isSameFile(path1, path2).  These methods trow an IOException but it's not handled in any way.
Is this an errata or am I missing something here?

Than you!
 
Jeanne Boyarsky
author & internet detective
Posts: 40392
821
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

A. Costa wrote:but I think that the code doesn't compile due to toRealPath() and File.isSameFile(path1, path2).  These methods trow an IOException but it's not handled in any way.
Is this an errata or am I missing something here?  


The book is right as is. That's a code snippet so you get to assume the surrounding method signature is correct.

 
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic