This week's book giveaway is in the Other Languages forum.We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!

# Questios having in correct answers

jose chiramal
Ranch Hand
Posts: 266
I have noticed that there are few errors in the SCJP Q&A given at the end of each chapter of the K&B book and also in the mock exam cd that came along with it. Is there any location where I could refer to the correct answers for such questions here in coderanch ?

Prithvi Sehgal
Ranch Hand
Posts: 774
Hello,

Check out for K&B errata. I think so, for SCJP 6 guide, still there is no confirmed errata. Else let the moderators speak on this
point.

Best Regards,

jose chiramal
Ranch Hand
Posts: 266
I feel there are lots of errors, as an example :

class TKO {
public static void main(String[] args) {
String s = "-";
Integer x = 343;
long L343 = 343L;
if(x.equals(L343)) s += ".e1 ";
if(x.equals(343)) s += ".e2 ";
Short s1 = (short)((new Short((short)343)) / (new Short((short)49)));
if(s1 == 7) s += "=s ";
if(s1 < new Integer(7+1)) s += "fly ";
System.out.println(s);
} }

Prithvi Sehgal
Ranch Hand
Posts: 774
Dear Jose,

Best Regards,

jose chiramal
Ranch Hand
Posts: 266
sorry abt it. In the code posted above the SCJP book mentions the ans without the "-"
Whereas the actual output on running it on eclipse is : -.e2 =s fly

Could someone please point me to the link having all the errata ?

Prithvi Sehgal
Ranch Hand
Posts: 774
Hello,

Best Regards,

jose chiramal
Ranch Hand
Posts: 266
Thanks Prithvi

Bert Bates
author
Sheriff
Posts: 8900
5
Hi Jose,

First off, it's quite possible that you've found errors in the book that no one else has found yet. If you search this forum for threads that include "errata SCJP 6" you'll find the thread where ranchers can add errors to the list, and where you can search the list.

BUT...

Please be careful! In the case of the question you posted, I think perhaps you need to go back and read the question more carefully. In general, you need to do a few things:

- Don't use an IDE
- When you post any mock question, from me or from anyone else, you must post the ENTIRE question.

So, in this case, you can probably use an IDE, but before you call this an error, read the ENTIRE question, and if you still have doubts, show the ENTIRE question on this thread, and make sure everyone agrees it's an error before you add it to the errata list.

Jose, I promise I'm not being too picky The questions on the real exam can be VERY tricky, and you MUST read them carefully. So, mock exam questions have to be read very carefully also!

Thanks!

Bert