It has taken four years, but with Head First Java the introductory Java book category has finally come of age. This is an excellent book, far more capable than any of the scores of Java-for-novices books that have come before it. Kathy Sierra and Bert Bates deserve rich kudos--and big sales--for developing this book's new way of teaching the Java programming language, because any reader with even a little bit of discipline will come away with true understanding of how the language works. Perhaps best of all, this is no protracted "Hello, World" introductory guide. Readers get substantial exposure to object-oriented design and implementation, serialization, neatwork programming, threads, and Remote Method Invocation (RMI).
Key to the authors' teaching style are carefully designed graphics. Rather than explain class inheritance (to cite one example) primarily with text, the authors use a series of tree diagrams that clarify the mechanism far more succinctly. The diagrams are carefully annotated with arrows and notes. Also characteristic of the unique teaching strategy is heavy reliance on exercises, in which the reader is asked to complete partial classes, write whole new code segments and do design work. Though there's little discussion of why the exercises' correct answers are what they are, it's clear that the practice work was carefully designed to reinforce the lesson at hand. If you've waited this long to give Java a try, this book is a great choice. --David Wall
Topics covered: The Java programming language for people with no Java experience, and even people with no programming experience at all. Key concepts read like a list of Java features: Object oriented design, variable type and scope, object properties and methods, inheritance and polymorphism, exceptions, graphical user interfaces (GUIs), network connectivity, Java archives (JAR files), and Remote Method Invocation (RMI).
From Book News, Inc.
Taking a very different approach to teaching Java, two Sun trainers break the sometimes complex concepts of Java into bite-size morsels for the brain and supplement them with visual cues, unexpected humor, and puzzles to keep the brain stimulated. Assuming minimal programming exposure, they cover objects, variables, object state, the Java library, polymorphism, memory management, exception handling, graphical user interfaces, networking sockets, and deploying the finished application.Copyright © 2004 Book News, Inc., Portland, OR
Book Description
Between Moore's law and the notion of "Internet time," we're constantly being bombarded with more and more information--most of it in the form of disorganized data. Turning this information into useful knowledge is getting harder and harder to do, and it takes time that we just don't have. The current economic situation hasn't helped either. With money spread thin, who hasn't had to take on new tasks and learn new things? And slashed training budgets mean there's little to rely on for learning except books- but learning a complex new programming language like Java from a book is no simple task. Maybe your boss is giving you two weeks to come up to speed for a project, or maybe you're ready to take that next step up in your current job, or be a more viable candidate for a new job. Whatever the reason, the onus is on you to learn. All these factors make it more important than ever to have a way to learn--fast. And that's what Head First Java does -- by exploiting the way your brain works, it compresses the time it takes to really learn. Why? Because its unique approach not only shows you what you need to know about Java syntax, it enables and encourages you to think like a Java programmer. Mastering object oriented programming requires a certain way of thinking, not just a certain way of writing code. The latest research in cognitive science, neurobiology, and educational psychology shows that learning at the deeper levels takes a lot more than text on a page. Actively combining words and pictures not only helps in understanding the subject, but in remembering it. According to some studies, an engaging, entertaining, image-rich, conversational approach actually teaches the subject better. Head First Java puts these theories into practice with a vengeance. Chock full of mind stretching exercises, memorable analogies, and stories, humor and attitude that aren't just pasted-on distractions but that are used to drive home key points and make ideas come alive, the Head First approach is as effective as it is unique. It takes a pretty unique person to have developed such an innovative way to Learn Java. Kathy Sierra has been interested in learning theory since her days as a game designer. More recently, she's been a master trainer for Sun Microsystems, teaching Sun's own instructors how to teach the latest Java technologies. She has been actively using the concepts in Head First Java to teach hundreds of trainers, developers and even non programmers. She is the founder of one of the largest Java community websites in the world, javaranch.com, and she is a member of the development team for the Sun Certified programmer exam. Bert Bates is also a long-time Java developer and trainer with extensive experience in learning theory. His background features a long stint in artificial intelligence with clients like the Weather Channel, A&E Network, Rockwell and Timken. Is Head First Java right for you? That depends. Head First Java assumes you're a programmer or at least have experience with scripting languages. It assumes that you're smart, that you're creative and open to new ideas, and that you know you're just not the type of person who wants to learn the traditional way. Take a look at the sample pages, explore the background on brain-based learning, examine the table of contents, and see for yourself how Head First Java takes learning to a whole new level. See why Tim O'Reilly says, "This is the first really new approach to computer books that I've seen in many years. I think it's going to revolutionize how programming and other complex topics are taught." Table of Content:1) Dive In (a quick dip into Java)2) Welcome to Objectville (intro to OO)3) Know your Variables (understanding Java types: primitives, object references, pass-by-value)4) How objects behave (instance variables and methods)5) Extra-strength methods (writing more complex code)6) Using the Java Library (solving problems with the API)7) Better Living in Objectville (inheritance, OO design, abstract classes)8) Serious Polymorphism (interfaces, more OO design, polymorphism)9) Life and Death of an object (constructors and memory management / garbage collection)10) Do the Math (static methods and variables, Math methods, Wrappers, and number formatting)11) Risky Behavior (handling exceptions)12) A very graphic story (GUI intro, inner classes, event handling)13) Work on your swing (more GUI, layout managers and Swing components)14) Saving objects (object serialization and file I/O)15) Make a connection (networking: sockets and server sockets)16) Release your Code (deployment: code organization, packages, executable JARs, and Java Web Start)17) Distributed Code (deployment via RMI and Servlets)
Head First Java FROM OUR EDITORS
The Barnes & Noble Review
Head First Java is a beginning Java primer like youᄑve never seen before (and believe us, weᄑve seen plenty). This book makes Java fun. No, that doesnᄑt do it justice. Imagine learning Java from Robin Williams. (The comedian, we mean. If you can imagine him as a truly great Java programmer.)
Synapses firing, new ideas, new connections, attitude all over the place: Thatᄑs Head First Java. (Where else can you watch Java objects expose their inner secrets on Java Tabloid TV? Or learn why Lucy really keeps her variables private?)
Hilarious captioned photos. Text thatᄑs actually funny (and we donᄑt mean the kind of ᄑallegedᄑ funny youᄑve seen in computer books before -- the kind that makes you cringe). Games. Puzzles. Mysteries. ᄑBe the compilerᄑ exercises. Great analogies.
And all these goodies werenᄑt bolted on at the end to enliven a deadly narrative or fit a format. Theyᄑre here to make the ideas come alive. And it works.
If you prefer to be lectured, if you prefer a rigid format where you know exactly what to expect every time you turn the pageᄑlook elsewhere. Head First Java has a surprise waiting on pretty much every spread. Kathy Sierra, Bert Bates, and the gang at OᄑReilly figure that people learn best when theyᄑre fully engaged. When theyᄑre being tickled. When theyᄑre on the floor laughing. (And the latest research in cognitive science, neurobiology, and educational psychology backs them up.)
In Chapter 1, youᄑll build your first app -- not Hello World, but your own personal Phrase-O-Matic. Then, itᄑs straight outta main() -- or, as the authors put it, ᄑWeᄑre leaving this dusty old procedural town for good.ᄑ Youᄑll learn why objects are better through an imaginary competition between Larry, the procedural programmer and Brad, the OO guy (winner gets the cool Aeron chair).
Next, itᄑs on to primitive and reference variables. Think of ᄑem as cups. Think of 64 and Double 64 primitives as Starbucks Grande cups. Java cares about type and wonᄑt let you put a Giraffe into a Rabbit variable: ᄑWhat happens when someone tries to ask the so-called Rabbit to hop()? Youᄑll get to know life -- and death -- on the garbage collectible heap. Thereᄑs a full chapter on object behavior and on encapsulation (ᄑdo it or risk humiliation and ridiculeᄑ).
One big idea at a time, you make it through every Java fundamental. Solving problems with the Java Library APIs. Inheritance. Object-oriented design. Serious polymorphism, and interfaces: ᄑthe caffeine in Java.ᄑ Constructors. Memory management. Garbage collection. Java math (static methods and variables, math methods, wrappers, and number formatting). Exception handling. GUIs, event handling, layout managers, and Swing components. Object serialization. File I/O. Networking and threads. Even getting your code ready for release (e.g., code organization, packages, executable JARs, and Java Web Start (which launches your application for the first time as a web browser and then runs it on a stand-alone basis).
Throughout Head First Java, youᄑll also find answers to the ᄑdumb questionsᄑ other books donᄑt deign to answer. Oh, and plenty of ᄑReady-bake code.ᄑ Youᄑll never forget this Java book -- or what you learn from it. Bill Camarda
Bill Camarda is a consultant, writer, and web/multimedia content developer. His 15 books include Special Edition Using Word 2000 and Upgrading & Fixing Networks for Dummies, Second Edition.
FROM THE PUBLISHER
We know what you're thinking -- why is there a duck in the memory management section? Can a girl in a bathtub illustrate the fine points of polymorphism? Is this for real? Prepare to have your mind opened! Head First Java combines puzzles, strong visuals, mysteries, and soul-searching interviews with famous Java objects to engage you in many different ways. It's fast, it's fun, and it's effective. The more different ways you process the material, the more you'll remember, and the better you'll be able to put what you learn to use. Despite its playful appearance, Head First Java is serious stuff -- a complete introduction to object-oriented (OO) programming and Java. You'll learn everything from fundamentals to advanced topics, including threads, network sockets, and distributed programming with RMI. More importantly, you'll learn how to think like an object-oriented developer. And you won't just be reading and solving puzzles. You'll be writing real Java, and lots of it, including the "sink a dot com" game, a trivia quiz, a networked musical chat system, and a universal service browser. If you want to be bored, go buy some other book. Please. (We'd tell you which book, but we'd probably be sued.) But if you want to learn Java, get a high-paying job (right), and improve your social life at the same time, you need Head First Java.
SYNOPSIS
Taking a very different approach to teaching Java, two Sun trainers break the sometimes complex concepts of Java into bite-size morsels for the brain and supplement them with visual cues, unexpected humor, and puzzles to keep the brain stimulated. Assuming minimal programming exposure, they cover objects, variables, object state, the Java library, polymorphism, memory management, exception handling, graphical user interfaces, networking sockets, and deploying the finished application. Annotation ©2004 Book News, Inc., Portland, OR