wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes SCJP 1.6 book from Kathy Sierra mistakes (Printing or anyother) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "SCJP 1.6 book from Kathy Sierra mistakes (Printing or anyother)" Watch "SCJP 1.6 book from Kathy Sierra mistakes (Printing or anyother)" New topic
Author

SCJP 1.6 book from Kathy Sierra mistakes (Printing or anyother)

Lokendra Shekhawat
Ranch Hand

Joined: Jun 08, 2009
Posts: 40
i found some mistakes in Kathy Sierra SCJP 1.6 book. i don't know were they printing mistakes or not. and please correct me if i am wrong because i am preparing for SCJP exam.

1. Page 458(Chapter 6) there is a line of code like:

name = c.readLine("%s", "input?: "); //#4 return a String

Here "name" variable is not declared it should be like " String name = c.readLine("%s", "input?: ");


2. Page 533(Question no 8): answer says option C(10 0 10) is correct but i think option b(10 0 9) is correct. bec variable z is declared as transient and before we store other variable to file its value was 10 and when we read object back then its value must be reset to 9. not 10. correct me if i am wrong.


I am still reading the book and if i found anymore mistakes i will post it here if any one else found problems like above please post here. so we we all can correct it.


SCJP5 93%. SCWCD 98%.

Visit my website http://www.rajasthan4tourism.com for information about rajasthan tourist places and much more.....!!!
W. Joe Smith
Ranch Hand

Joined: Feb 10, 2009
Posts: 710
Lokendra Shekhawat wrote:i found some mistakes in Kathy Sierra SCJP 1.6 book. i don't know were they printing mistakes or not. and please correct me if i am wrong because i am preparing for SCJP exam.

1. Page 458(Chapter 6) there is a line of code like:

name = c.readLine("%s", "input?: "); //#4 return a String

Here "name" variable is not declared it should be like " String name = c.readLine("%s", "input?: ");


2. Page 533(Question no 8): answer says option C(10 0 10) is correct but i think option b(10 0 9) is correct. bec variable z is declared as transient and before we store other variable to file its value was 10 and when we read object back then its value must be reset to 9. not 10. correct me if i am wrong.


I am still reading the book and if i found anymore mistakes i will post it here if any one else found problems like above please post here. so we we all can correct it.


I believe there is already a topic for errata in the Sierra & Bates study guide.


SCJA
When I die, I want people to look at me and say "Yeah, he might have been crazy, but that was one zarkin frood that knew where his towel was."
Lokendra Shekhawat
Ranch Hand

Joined: Jun 08, 2009
Posts: 40
oh!! sorry for that will you please guide me to that thread please
W. Joe Smith
Ranch Hand

Joined: Feb 10, 2009
Posts: 710
Lokendra Shekhawat wrote:oh!! sorry for that will you please guide me to that thread please


It is a link at the top of the SCJP forum, but it states it is for Java 5. I don't know if there is one specifically for 6 yet.

Teaches me to not research my answer before I post!
Alexander Danilou
Greenhorn

Joined: May 08, 2009
Posts: 28
2. Page 533(Question no 8): answer says option C(10 0 10) is correct but i think option b(10 0 9) is correct. bec variable z is declared as transient and before we store other variable to file its value was 10 and when we read object back then its value must be reset to 9. not 10. correct me if i am wrong.

In my K&B book variable z declared as static, and y as transient, the last number printed is z, so I believe 10 is correct answer in this case
Jay Ceazar Boado
Greenhorn

Joined: May 24, 2009
Posts: 10
Alexander Danilou wrote:
2. Page 533(Question no 8): answer says option C(10 0 10) is correct but i think option b(10 0 9) is correct. bec variable z is declared as transient and before we store other variable to file its value was 10 and when we read object back then its value must be reset to 9. not 10. correct me if i am wrong.

In my K&B book variable z declared as static, and y as transient, the last number printed is z, so I believe 10 is correct answer in this case


me too, I have z declared as static and y as transient.


_________________________________________
"Open Season- SCJP 6.0 - Java Hunting Gound!"
Lokendra Shekhawat
Ranch Hand

Joined: Jun 08, 2009
Posts: 40
my mistake the second one is correct bec variable z is static and it will have value 10 the whole time the class exists. so second one is correct. my mistake
 
GeeCON Prague 2014
 
subject: SCJP 1.6 book from Kathy Sierra mistakes (Printing or anyother)