Java Performance Tuning By Jack Shirazi This errata page lists errors outstanding in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. (Please specify the printing date of your copy.) This page was last modified on April 21, 2003. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification Confirmed errors: (176) Existing code line: public static final Class FOO_BAR_CLASSNAME = Class.forName("foo.bar.ClassName"); should read public static final Class FOO_BAR_CLASSNAME = foo.bar.ClassName.class; Text below that: Existing paragraph: Note that foo.bar.ClassName.class is a valid construct to refer to the foo.bar.ClassName class object. However, the compiler generates a static method that calls Class.forName( ) and replaces the foo.bar.ClassName.class construct with a call to that static method. So it is better to use the FOO_BAR_CLASSNAME static variable as suggested, rather than: Should be - Note that foo.bar.ClassName.class is a valid construct to refer to the foo.bar.ClassName class object. However, the compiler generates a static method that calls Class.forName( ) and replaces the foo.bar.ClassName.class construct with a call to that static method. So if the contruct will be accessed more than once, it is better to use the FOO_BAR_CLASSNAME static variable as suggested, rather than: