I read both and in a nutshell, K&B shows you only what you need for the test because it assume that at least you are a junior java programmer. On the other hand, Khalid's book ask helps you to past the test but it is more comprehensive because it assume that you want to become a java junior programmer.... I hope my analogy helps you!
Disclaimer: I looked at older versions of Mughal's book, but I haven't seen the new version yet. I thought the old version was good and I expect the new version is good too.
Java is HUGE... IMHO no one book can cover it all.
Kathy and I had a goal to teach about 110% of what's needed to get a great score on the SCJP exam In general we believe that technical material should be as focused as possible. Let's say that that happens to be 4% of what there is to know about Java. My sense is that Mughal's goal was to cover 140% of what's on the exam, and thereby cover 5% of what there is to know about Java.
So I would say that if your goal is mostly about the SCJP exam, the K&B book will be a bit more focused. If your goal is to find a good book that covers the exam AND a bit more, than Mughal's book is probably a good one to consider. What I don't know is how well Mughal describes which parts of his book are beyond what's on the exam. That would be good to know.
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Bert Bates wrote:
What I don't know is how well Mughal describes which parts of his book are beyond what's on the exam. That would be good to know.
Each chapter starts by listing the exam objectives that are covered in the chapter, and a list of supplementary objectives (i.e. additional topics) that are not on the exam.
While reading a topic in a chapter, it is fairly easy to see whether it is part of the exam requirement or not by consulting the objectives at the start of the chapter.
These additional topics have been included primarily to ensure that concepts are explained from the ground up, and can easily be skipped if they are familiar.
I find that it is helpful to go through a small set of exercises after reading about a concept, and in the sample chapter on Threads, they do have a set of challenging questions/exercises that really make us think - and this makes the concepts much clearer.
So far I've reviewed the first few pages of a sample chapter on Threads from this book:
Thank you so much for your wonderful comments and feedback. But now, I have made up my mind to buy this book in addition to other book (K&B) which is very popular in this forum. I hope this will be helpful in the long run as it has covered other topics too.