• 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
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

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
  • 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: 40283
819
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • 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.
 
Quick! Before anybody notices! Cover it up with this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic