Head First Java delivers a highly interactive, multisensory learning experience that lets new programmers pick up the fundamentals of the Java language quickly. Through mind-stretching exercises, memorable analogies, humorous pictures, and casual language, Head First Java encourages readers to think like a Java programmer. This revised second edition focuses on Java 5.0, the latest version of the Java development platform.
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. And, despite its playful appearance, Head First Java is serious stuff: a complete introduction to object-oriented programming and Java. You'll learn everything from the fundamentals to advanced topics, including threads, network sockets, and distributed programming with RMI. And the new. second edition focuses on Java 5.0, the latest version of the Java language and development platform. Because Java 5.0 is a major update to the platform, with deep, code-level changes, even more careful study and implementation is required. So learning the Head First way is more important than ever.
By exploiting how your brain works, Head First Java compresses the time it takes to learn and retain complex information. Its unique approach not only shows you what you need to know about Java syntax, it teaches you to think like a Java programmer. If you want to be bored, buy some other book. But if you want to understand Java, this book's for you.
Intro 1 Breaking the Surface: a quick dip 2 A Trip to Objectville: yes, there will be objects 3 Know Your Variables: primitives and references 4 How Objects Behave: object state affects method behavior 5 Extra-Strength Methods: flow control, operations, and more 6 Using the Java Library: so you don't have to write it all yourself 7 Better Living in Objectville: planning for the future 8 Serious Polymorphism: exploiting abstract classes and interfaces 9 Life and Death of an Object: constructors and memory management 10 Numbers Matter: math, formatting, wrappers, and statics 11 Risky Behavior: exception handling 12 A Very Graphic Story: intro to GUI, event handling, and inner classes 13 Work on Your Swing: layout managers and components 14 Saving Objects: serialization and I/O 15 Make a Connection: networking sockets and multithreading 16 Data Structures: collections and generics 17 Release Your Code: packaging and deployment 18 Distributed Computing: RMI with a dash of servlets, EJB, and Jini A
Appendix A: Final code kitchen B
Appendix B: Top Ten Things that didn't make it into the rest of the book
Index