Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Overview

This book will help you prepare for and pass the Sun Certified Programmer for the Java Platform SE 6 (CX-310-065) Exam. It is written for any experienced programmer (with or without previous knowledge of Java) interested in mastering the Java programming language and passing the SCJP 1.6 Exam.

A Programmer’s Guide to Java™ SCJP Certification, Third Edition, provides detailed coverage of all exam topics and objectives, readily runnable code examples, programming exercises, extensive review questions, and a new mock exam. In addition, as a comprehensive primer to the Java programming language, this book is an invaluable reference tool.

This new edition has been thoroughly updated to focus on the latest version of the exam (CX-310-065). In particular, it contains in-depth explanations of the language features. Their usage is illustrated by way of code scenarios, as required by the exam. The companion Web site (www.ii.uib.no/~khalid/pgjc3e/) contains a version of the SCJP 1.6 Exam Simulator developed by the authors. The site also contains the complete source code for all the book’s examples, as well as solutions to the programming exercises.

What you will find in this book:

  • Extensive coverage of all the objectives defined for the Sun Certified Programmer for the Java Platform, Standard Edition 6 (CX-310-065) Exam

  • An easy-to-follow structure with chapters organized according to the exam objectives, as laid out by Sun Microsystems

  • Summaries that clearly state and differentiate the exam objectives and the supplementary objectives to be covered in each chapter

  • A list of Sun’s objectives for the SCJP 1.6 Exam and a guide to taking the exam

  • A complete mock exam with new questions (not repeats of review questions)

  • Numerous exam-relevant review questions to test your understanding of each major topic, with annotated answers

  • Programming exercises and solutions at the end of each chapter

  • Copious code examples illustrating concepts, where the code has been compiled and thoroughly tested on multiple platforms

  • Program output demonstrating expected results from running the examples

  • Extensive use of UML (Unified Modeling Language) for illustration purposes

  • An introduction to basic terminology and concepts in object-oriented programming

  • Advice on how to avoid common pitfalls in mastering the language and taking the exam

  • Platform- and tool-independent coverage

  • Information about the SCJP 1.6 Upgrade (CX-310-066) Exam

Subscriber Reviews

Average Rating: 4.2 out of 5 rating Based on 20 Ratings

"Examples are confusiong, I wouldn't recommend it." - by Alessandro M. on 05-FEB-2012
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I read from chapters 1-3, then I jumped to the 13 (Threads) where I realized the book was meant to be a puzzle rather than a study guide.

In fact, in the example 13.7 the author provides an example of a Runnable class that loops in the 'run' method until a 'terminate' method is called. The terminate method is setting a flag to interrupt the loop. The funny bit the choice of the flag and the way it is checked:

public void terminate() {
   theThread = null
}

public void run () {
   while (theThread == Thread.currentThread()) {
      // do something
   }
}

the terminate method sets theThread to null, and when that happens it will make the while condition false, as currentThread is never null.
Now the question is: what's the point of comparing with current thread?!?

while (theThread != null)

wouldn't be more clear?

Secondly, why not just add a dedicated variable for this purpose:

private boolean terminate = false;

public void terminate() {
   terminate = true;
}

public void run () {
   while (!terminate) {
      // do something
   }
}

Isn't this code just clearer?!?

To the authors: thanks for making an already complex subject cryptic!

Report as Inappropriate

"Great Book" - by Venu on 14-APR-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I consider this the best Java book I have read. I have recommended this to several people and they have given me the same feed back.
Report as Inappropriate

"JAVA" - by ABHI on 03-FEB-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
JUST AWSOM
Report as Inappropriate

"Excellent for core knowledge" - by Sachin Panwar on 20-DEC-2010
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This is Excellent book for core java.
Report as Inappropriate

"IT Analyst" - by Anonymous on 30-NOV-2010
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
good
Report as Inappropriate

Table of Contents

 Index