Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

OCP Java 8 Study Guide Ch. 9 Errata (Sybex)

 
Greenhorn
Posts: 13
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A few more minor possible corrections for Ch. 9:

1. Page 482 middle of page: food.jpeg in the text should be food.jpg for consistency with the example code preceding the text
2. Page 486 second paragraph: "this leaves the files in the future in an ambiguous state" -- was "future" meant to be "directory"?
3. Page 500 question 10 answer E: "The metadata of the monkey.txt will" should be "The metadata of monkey.txt will"
4. Page 569 question 6 explanation: Predictate should be Predicate

Thanks!
 
author & internet detective
Posts: 41262
849
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
Agreed and logged all. Thanks Donald!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

For question 21 of chapter8, I think the correct answer is G since tail is an Object type and the class Object is not serializable.
Setting a value to tail with setters and then trying to serialize will throw the NotSerializableException

 
Jeanne Boyarsky
author & internet detective
Posts: 41262
849
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
Weizheng,
Welcome to CodeRanch!

tail is null in the code given. There's no setters coded nor a comment saying the getters/setters were omitted. So the values initialized in the object in the quesiton are all you get. Since null can be serialized, the answer in the book is correct.
 
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic