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

K&B Errata

 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi these are the errors that I have found in the K&B book. I have the 6.0 book so the page numbers are according to that.

1.
on page 281, question no 7 explanation. the line no. 12 of the program must be

System.out.println(Suits.NOTRUMP.getValue(3));

instead of

System.out.println(Suits.NOTRUMP.getBidValue(3));

2.
on page 618, the first paragraph has a small error. The third word is <? extends Animal> and the explanation is as if it was List<? extends Animal>. Please read the whole paragraph and you will realize what I am talking about.

3.
on page 798, the first paragraph says that

when searching for class files, the java and javac commands don't search the current directory by default.



This is not correct. java and javac commands search in only the current directory by default. I know that it is in the context of explicitly specifying the classpath using the -cp or -classpath option. But the sentence must state that explicitly. This is a minor mistake but I think this can create misconcepts in someone's mind. So according to me the sentence must be

when you specify the classpath yourself, the java and javac commands don't search the current directory by default.



4.
Page No. 817. Question no. 11. All the options are wrong according to me. The correct answer is given as A, but the classpath is not given with the java command. It must be specified as the question says that myApp.Foo class is in the MyJar.jar file.

5.
I don't remember where that question is, but one of the question says that enclosing line 6(or some other line no.) will let the program compile while that line is the ending curly brace of the main method. The line number is wrong in the answer.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks ankit...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic