Win a copy of Rust Web Development this week in the Other Languages 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Sybex Java OCP 8 Study Guide Chapter 1 page 63 small typo

 
Ranch Foreman
Posts: 96
5
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sybex Java OCP 8 Study Guide Chapter 1 page 63 small typo
It's an example about polymorphism.
Lemur lemur = new Lemur();
System.out.println(lemur.age);//10
HasTail hasTail = lemur;
System.out.println(hasTail.age);// DOES NOT COMPILE


Typo: In this example, the reference hasTail has direct access only to methods defined "with" the HasTail interface;

It should be "within" instead of "with".
 
Vlad Alin
Ranch Foreman
Posts: 96
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chapter 2 sorry.
 
Vlad Alin
Ranch Foreman
Posts: 96
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also on page 94 in the last paragraph.
The singleton and immutable object patterns are both types of creational patterns, which are design patterns that facilitate the creation of objects WITH an application.

it should be WITHIN instead of WITH
 
Marshal
Posts: 74627
335
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you have found two new errata: well done finding them. Please wait until Jeanne Boyarsky checks this forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic