I know it might be a little bit too much to compare these 2, but when I think I will buy only one book for SCJP Study Guide on Java 6 I am curious to know which one you are preferring for your own study.
Considering that I have all the other java related basic books and and a good working experience in Java SE and EE platform for a while, I might go with the K&B but when I read Khalid Mughal almost 8 years ago, there was no book comparable to that. So there comes my confusion as you may see.
Which one did you buy? If you have bought both, then which one you emphasized more for your preparation?
Ashik Uzzaman Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
I read both the books for SCJP6 and after giving the certification, i would suggest you to go for K&B. Khalid mughal's book for SCJP6 is in detail and has everything, things which are needed and also not needed. It covers generics in much more detail than K&B but i guess its not that much needed for the SCJP exam. But i would still say that for SCJP6, K&B is really a wonderful book.
[ SCJP 6.0 - 90% ] , JSP, Servlets and Learning EJB.
Try out the programs using a TextEditor. Textpad - Java 6 api
If your focus is passing the certification exam only, then I would suggest K&B. It covers everything you need for the exam. No need for any other book.
But, if you are interested in knowing a bit more and you have time, Khaled Mughal is a good choice.
I talked to Khalid two days ago at a talk he held about the new revision of the SCJP6.
At a direct question he made the same comments as several people here. He said K&B is targeted very much at making you pass the certification. The strong points of his own book was that it was more thorough and explained subjects also outside of the exam objectives. So Khalid's book should be better at teaching you java. He actually recommended the K&B if you're already an experienced java programmer and just wants to squeeze through the exam.
I haven't read the books myself though. I'm just starting to look at the exam. Anyway I think both books should prepare you just fine.
Thanks Stian. This is exactly my view as well and hence both books are very good at their purpose. So I guess I will go with the K&B considering I have a decent work experience already with Java/J2EE. However, if I believe I will get some extra time, I will buy Khalid Mughal's new book as well (I have the old one) to go through what he and Ralf have uncovered for Java 6 as well!