• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

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: 41774
887
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: 41774
887
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.
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic