Sams Teach Yourself Java 2 in 21 Days, Professional Reference Edition (3rd Edition)

Sams Teach Yourself Java 2 in 21 Days, Professional Reference Edition (3rd Edition)

$49.99 $34.99

  • Release Date: 24 December, 2002
  • Used Price: $29.70
  • Availability: Usually ships within 24 hours
  • Third Party Used Price: $30.53

Authors: Laura Lemay, Rogers Cadenhead

Newly revised for some of the latest Sun JDK 1.3 standards, the second edition of Sams Teach Yourself Java 2 in 21 Days provides a refreshingly compact and useful tour of Java suitable for anyone who wants to master this powerful programming language quickly.

Currently, Java has some 2,000 classes and over 24,000 methods and properties. Instead of covering a laundry list of features, this book concentrates on what's really important, and keeps your attention with short, clever examples, many of which use names and examples drawn from pop culture or historical trivia.

The first week of lessons in the book comprises an easily digestible tutorial on basic Java, with review questions and exercises that will help you start using it on your own. Next comes a tour of the various options for building user interfaces in today's Java, including Swing applets and applications. In addition to basic component programming, you'll learn graphics using the new Java 2D API. (The older Abstract Windowing Toolkit, AWT, isn't covered.) Material on threading, animation, and sound helps you explore Java's multimedia capabilities.

The third and final week of lessons addresses advanced Java APIs and features that extend the reach of Java on the enterprise. After delving into more advanced class design, the book looks at topics like I/O streams in Java and Object Serialization (which allows objects to work with streams). Chapters on security and basic networking (illustrated using a server that generates trivia questions for clients) will let you work with Java on the Internet. The book closes with a chapter on database programming with JDBC. (There's also coverage of the older JDK 1.0 collection classes, which is a little surprising given the book's focus on newer Java 2 standards.)

All in all, Sams Teach Yourself Java 2 in 21 Days provides an efficiently packaged tutorial for learning Java, one that will be appreciated by any beginning Java programmer. The sheer number of classes and APIs in today's Java can be overwhelming. The intelligent and concise series of lessons in this book will help jump-start your knowledge. --Richard Dragan

Topics covered:

  • Overview and history of Java
  • Introduction to objects
  • Class inheritance
  • Tutorial for basic Java (including data types and keywords, flow control, and working with objects)
  • Arrays
  • Basic Java applications
  • Methods and constructors
  • Introduction to Java applets
  • Building Swing user interfaces (basic component types, layout managers, and event processing)
  • Java 2D graphics (drawing basic shapes, text output, and fonts)
  • Using threads for animation
  • Loading and displaying images
  • Java Sound (including MIDI files)
  • Advanced class design (interfaces, packages, advanced method options)
  • Exception handling and security
  • Signing JAR files
  • File and stream I/O in Java
  • Object Serialization and reflection
  • Remote Method Invocation (RMI)
  • Java networking basics (sockets and servers)
  • Building custom UI components with JavaBeans
  • Database programming with JDBC
  • JDK 1.0 collection classes
  • References on the Sun JDK 1.3 (including installation)

Similar Products

Sams Teach Yourself Java 2 in 24 Hours (3rd Edition)

From $17.49:

Sams Teach Yourself Java 2 in 24 Hours (3rd Edition)

Sams Teach Yourself J2EE in 21 Days (With CD-ROM)

From $34.99:

Sams Teach Yourself J2EE in 21 Days (With CD-ROM)

Sams Teach Yourself C++ in 21 Days (4th Edition)

From $24.49:

Sams Teach Yourself C++ in 21 Days (4th Edition)

Sams Teach Yourself JavaServer Pages in 21 Days

From $27.99:

Sams Teach Yourself JavaServer Pages in 21 Days

Sams Teach Yourself Object Oriented Programming in 21 Days

From $27.99:

Sams Teach Yourself Object Oriented Programming in 21 Days

Customer Rating: 3.49 of 5 (79 total reviews)

  • 4 starsGood book for Beginner / Intermediate Programmers

    I have a limited programming background, having completed a couple VB6 courses, and I have some background in C, HTML, and SQL. I'm just now starting my first C++ course. Having had VB prior really helped to prepare me with the object basics, methods, classes, components, and events. I was truly able to understand 99% of the book, including the code examples. Some of the syntax was not explained adequately, but if you do not let it bog you down, most of it you will understand by the time you finish the book.

    There were alot of calls made to Java methods which are not explained, but the J-Builder v2.01 software which came with my book has a very useful online reference section(go to Help-Java Reference). This reference has an index where you can look up the class heirarchies, descriptions, syntax and usage of all methods and constructors, and much more (Examples of each method and other simple code samples would be nice, though).

    Most of the book's code samples were challenging enough to be interesting and just long enough to illustrate the concept. There were a number of errors, many of which you can be forewarned about at the book's website. The author encourages personal email questions, but he sends back an automated message saying it will be a few weeks before he can get to your question.

    I liked that the code samples only had a very limited amount of comment statements, but the author goes over the new concepts in the code line-per-line in the text. For me, the first (7) chapters were the hardest and seemed to cover the essential code basics and object/class concepts, but after that I really felt the material got easier and had a nice flow to it.

  • 2 starsConfusing for beginners, and not much better for others

    I'd only recommend Teach Yourself Java 2 in 21 Days if nothing else is available.

    First, let me say that a few have eluded to the "cutesy" writing style the authors intersperse throughout this book. It's not as sickening as they claim; in fact, it's actually one of the saving graces of the book, adding enough humor and "down-to-earthness" to keep the reader somewhat interested in it.

    My beef is the confusing teaching style Lemay and Cadenhead present. It often leaves the reader frustrated and perplexed by jumping around back and forth in the book searching for a clear explanation on how to do anything within Java. Here's what I mean: frequently, new terminology is only briefly touched upon within a chapter (and it usually doesn't tie in directly with the chapter's subject matter), only to abruptly conclude with "We'll get into this topic more tomorrow" or "we'll cover this more next week". When the topic is reconvened later, you're automatically expected to have a thorough knowledge of it. This leaves you thumbing through previous pages trying to look for any explanation on it. I found that the first seven chapters are especially good (or should I say bad) at this. I can realistically say that at the end of the first week, some beginners still won't know the differences between variables, statements, and methods -- all basic elements taught "in detail".

    The examples sometimes include elements that aren't even mentioned until several chapters later. As you're going through lines of code, there's the odd syntax with no details on what it actually does within the example. You're just excepted to accept it. If you're new to Java, and like to know what's going on at all times, this would prove to be quite mind-boggling. While this is admittedly unavoidable, there are so many times the authors could've started out with simple concepts (and examples to match them) and "build up" gradually.

    Speaking of the examples -- I feel there should have been more in each chapter. Unless you're the type who remembers everything after being told only once, you'd need more examples and sample applications and applets to help the material "sink in".

  • 5 starsthe best java book!

    I have read pretty much every book that the RI CLAN library system has on java and general computer programming and I have never seen a better book on java developement. It taught me almost everything I know about java, and I have read every almost edition. Although I regret that this version does not have as much coverage of threads, awt interfaces, or applets as the 2nd edition, it has better coverage of OOP and I finally figured out how to get the jdk command line tools to work! This book is perfect for anyone of beginner or intermediate knowlege of Java, or it will teach you java and OOP from scratch! Also good to buy as a desk refrence for all those difficult functions.