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

Sybex 816. Chapter 1 answers to review questions. Explanation for question 10 contains error

 
Ranch Hand
Posts: 53
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, Jeanne and Scott, I noticed that explanation for the review question 10 contains error.



It is said

If the static modifier on line 4 was removed, then the class would compile and produce two files: Ostrich.class and Ostrich$OstrichWrangler.class.



It is wrong as I understand. If the static modifier on line 4 was removed then three files would be generated. One more for the inner interface.

Ostrich.class
Ostrich$OstrichWrangler.class
Ostrich$Wild.class

 
author & internet detective
Posts: 41763
885
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
Confirmed. Wild was a last minute addition and we made a regression error. I've added it to the errata list as "ignore all references to Wild". Thank you for noticing and letting us know.
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic