Head First Java and over 1.5 million other books are available for Amazon Kindle . Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
Buy Used
Used - Good See details
Price: £18.58

or
Sign in to turn on 1-Click ordering.
 
   
Trade in Yours
For a £6.50 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Colour:
Image not available

 
Start reading Head First Java on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Head First Java [Paperback]

Kathy Sierra , Bert Bates
4.3 out of 5 stars  See all reviews (58 customer reviews)
RRP: £34.50
Price: £22.08 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £12.42 (36%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 9 left in stock (more on the way).
Dispatched from and sold by Amazon. Gift-wrap available.
Want delivery by Saturday, 25 May? Choose Express delivery at checkout. See Details

Formats

Amazon Price New from Used from
Kindle Edition £18.77  
Paperback £22.08  
Trade In this Item for up to £6.50
Trade in Head First Java for an Amazon.co.uk gift card of up to £6.50, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Book Description

16 Feb 2005 0596009208 978-0596009205 2

Learning a complex new language is no easy task especially when it s an object-oriented computer programming language like Java. You might think the problem is your brain. It seems to have a mind of its own, a mind that doesn't always want to take in the dry, technical stuff you're forced to study.

The fact is your brain craves novelty. It's constantly searching, scanning, waiting for something unusual to happen. After all, that's the way it was built to help you stay alive. It takes all the routine, ordinary, dull stuff and filters it to the background so it won't interfere with your brain's real work--recording things that matter. How does your brain know what matters? It's like the creators of the Head First approach say, suppose you're out for a hike and a tiger jumps in front of you, what happens in your brain? Neurons fire. Emotions crank up. Chemicals surge.

That's how your brain knows.

And that's how your brain will learn Java. 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.

If you've read a Head First book, you know what to expect--a visually rich format designed for the way your brain works. If you haven't, you're in for a treat. You'll see why people say it's unlike any other Java book you've ever read.

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.


Frequently Bought Together

Head First Java + Head First Design Patterns + Effective Java: Second Edition
Price For All Three: £71.21

Buy the selected items together


Product details

  • Paperback: 720 pages
  • Publisher: O'Reilly Media; 2 edition (16 Feb 2005)
  • Language: English
  • ISBN-10: 0596009208
  • ISBN-13: 978-0596009205
  • Product Dimensions: 17.8 x 3.8 x 23.2 cm
  • Average Customer Review: 4.3 out of 5 stars  See all reviews (58 customer reviews)
  • Amazon Bestsellers Rank: 8,384 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Authors

Discover books, learn about writers, and more.

Product Description

About the Author

Kathy Sierra has been interested in learning theory since her days as a game developer (Virgin, MGM, Amblin'). More recently, she's been a master trainer for Sun Microsystems, teaching Sun's Java instructors how to teach the latest technologies to customers, and a lead developer of several Sun certification exams. Along with her partner Bert Bates, Kathy created the Head First series. She's also the original founder of the Software Development/Jolt Productivity Award-winning javaranch.com, the largest (and friendliest) all-volunteer Java community.

Bert Bates is a 20-year software developer, a Java instructor, and a co-developer of Sun's upcoming EJB exam (Sun Certified Business Component Developer). His background features a long stint in artificial intelligence, with clients like the Weather Channel, A&E Network, Rockwell, and Timken.

Excerpt. © Reprinted by permission. All rights reserved.

Chapter 2 A Trip to Objectville

I was told there would be objects. In chapter 1, we put all of our code in the main() method. That’s not exactly object-oriented. In fact, that’s not object-oriented at all. Well, we did use a few objects, like the String arrays for the Phrase-O-Matic, but we didn’t actually develop any of our own object types. So now we’ve got to leave that procedural world behind, get the heck out of main (), and start making some objects of our own. We’ll look at what makes object-oriented (OO) development in Java so much fun. We’ll look at the difference between a class and an object. We’ll look at how objects can give you a better life (at least the programming part of your life. Not much we can do about your fashion sense). Warning: once you get to Objectville, you might never go back. Send us a postcard.

Chair Wars
(or How Objects Can Change Your Life)

Once upon a time in a software shop, two programmers were given the same spec and told to "build it". The Really Annoying Project Manager forced the two coders to compete, by promising that whoever delivers first gets one of those cool Aeron™ chairs all the Silicon Valley guys have. Larry, the procedural programmer, and Brad, the OO guy, both knew this would be a piece of cake.

Larry, sitting in his cube, thought to himself, "What are the things this program has to do? What procedures do we need? And he answered himself, "rotate and playSound." So off he went to build the procedures. After all, what is a program if not a pile of procedures?

Brad, meanwhile, kicked back at the café and thought to himself, "What are the things in this program... who are the key players?" He first thought of The Shapes. Of course, there were other objects he thought of like the User, the Sound, and the Clicking event. But he already had a library of code for those pieces, so he focused on building Shapes. Read on to see how Brad and Larry built their programs, and for the answer to your burning question, "So, who got the Aeron?

In Larry’s cube
As he had done a gazillion times before, Larry set about writing his Important Procedures. He wrote rotate and playSound in no time.

rotate(shapeNum) {
// make the shape rotate 360º
}
playSound(shapeNum) {
// use shapeNum to lookup which
// AIF sound to play, and play it

At Brad’s laptop at the cafe
Brad wrote a class for each of the three shapes

Larry thought he’d nailed it. He could almost feel the rolled steel of the Aeron beneath his...

But wait! There’s been a spec change.
"OK, technically you were fi rst, Larry," said the Manager, "but we have to add just one tiny thing to the program. It’ll be no problem for crack programmers like you two."

"If I had a dime for every time I’ve heard that one", thought Larry, knowing that specchange-no-problem was a fantasy. "And yet Brad looks strangely serene. What’s up with that?" Still, Larry held tight to his core belief that the OO way, while cute, was just slow. And that if you wanted to change his mind, you’d have to pry it from his cold, dead, carpal-tunnelled hands

Back in Larry’s cube
The rotate procedure would still work; the code used a lookup table to match a shapeNum to an actual shape graphic. But playSound would have to change. And what the heck is a .hif fi le?

playSound(shapeNum) {
// if the shape is not an amoeba,
// use shapeNum to lookup which
// AIF sound to play, and play it
// else
// play amoeba .hif sound
}

It turned out not to be such a big deal, but it still made him queasy to touch previously-tested code. Of all people, he should know that no matter what the project manager says, the spec always changes.

At Brad’s laptop at the beach
Brad smiled, sipped his margarita, and wrote one new class. Sometimes the thing he loved most about OO was that he didn’t have to touch code he’d already tested and delivered. "Flexibility, extensibility,..." he mused, reflecting on the benefits of OO

Larry snuck in just moments ahead of Brad.
(Hah! So much for that foofy OO nonsense). But the smirk on Larry’s face melted when the Really Annoying Project Manager said (with that tone of disappointment), "Oh, no, that’s not how the amoeba is supposed to rotate..."

Turns out, both programmers had written their rotate code like this:
1) determine the rectangle that surrounds the shape
2) calculate the center of that rectangle, and rotate the shape around that point.

But the amoeba shape was supposed to rotate around a point on one end, like a clock hand.

"I’m toast." thought Larry, visualizing charred Wonderbread™. "Although, hmmmm. I could just add another if/else to the rotate procedure, and then just hard-code the rotation point code for the amoeba. That probably won’t break anything." But the little voice at the back of his head said, "Big Mistake. Do you honestly think the spec won’t change again?"


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

Most Helpful Customer Reviews
53 of 56 people found the following review helpful
5.0 out of 5 stars An Excellent Tour Guide... 14 Jun 2006
Format:Paperback
To give you a bit of context so you know where I was coming from before I started reading this book, I used to be a programmer many years ago (over 15), but haven't cut any code for years other than the odd bit of VBA in Excel. I've used mainly BASIC-style languages including Informix, VB, etc. I have read about OO and tried and failed to learn C so have no real experience or understanding of what Java can do. I wanted to learn Java now a) for something to do with my brain (how I miss programming!) and b) to see what all the fuss was about.

I found the book to be very accessible - it has lots of different ways of providing the information - straight text, pictures with text on, jokes (cheesy, but ok), break-out boxes, quizzes, etc. It is probably written for people with short attention spans, but that works ok for me. Sometimes it labours a point a bit too much, but it does mean that everything sticks and I have found this book to be an excellent way for me to learn Java so far. I'm learning new stuff and it is sticking - I can leave it for a few days and still remember everything (both how AND why things are done - something the book is very good at covering). After about a week of reading (doing about an hour a night after work) I have been able to write a basic command line calculator, which uses only about 100 lines of code. I have completed this in far less time than it would have taken me to do it in Informix/VB, etc. The program itself is no big deal in programming terms, but I made sure that the program uses most of the concepts taught in the first half of the book and I didn't have to spend hours flicking around the pages looking for bits and pieces when writing it - any book that can put that amount of knowledge in my head in a week is excellent as far as I am concerned.

I have read another reviewer's comments about this book not being a reference and I agree totally. The book teaches Java and its application of OO concepts in a logical and structured manner and does this very well. It does not cover all aspects of Java, for example it refers the reader to Sun's JDK Documentation to explore the full set of API features. In fact, it doesn't even cover how to compile and execute Java programs (classes), which seems somewhat fundamental to me. I worked out how to do this at the command prompt (DOS) myself, but now use a development tool called JCreator, which is freeware and makes life a lot easier.

I would say that this book will make you into a competent Java programmer if you are new to Java, but have some confidence/experience with programming or computer software in general (e.g. you aren't scared of concepts like a stack and using pushing and popping, or can work out how to install and use the compiler yourself, etc.). I suspect that more reading will be needed to become a skilled one (and to be fair the book does suggest this so it isn't masquerading as something it isn't). As an analogy, I would describe this book as a very knowledgeable tour guide, but one who assumes you know (in a small way at least) something of the subject already. In other words, after reading it you will be able to write Java-based OO programs, but won't be necessarily able to articulate the concepts and arguments underpinning the reasons for using OO in the first place or the full power that Java has to offer. If you are hobbyist Java-noodler like me then that's absolutely fine. If you want to become an excellent Java programmer then this book would be a great first step, but will not take you on the full journey.
Comment | 
Was this review helpful to you?
31 of 33 people found the following review helpful
5.0 out of 5 stars Cracking book! 2 Jan 2006
Format:Paperback
I'm learning Java, moving from 8 years C++ experience. Thus much of this book covers already familiar concepts such as OO and some of the basic syntax. however rather than finding these bits dragging and skipping over them I find myself rocketing through it, hunting for the new nuggests and differences in there and enjoying the learning experience!

The style is so distinctive and effectively alternates presentation and sub-set of the chapter's subject matter on a page by page basis. Thus as the book moves into newer territory its style prevents boredom and the "frequent coffee break syndrome". I find that the non linear and slightly "hopscotch" method of changing presentation styles, fore-shadowing areas to come and going over old ground in different ways is excellent.

Overall the progress through the book is good, though i find each chapter's progress varable. The chapters are effectively the smallest area of work - you really need to complete the chapter at the end of the day (for me anyway); however leaving the exercises till the next day is good revision!

Not sure whether it's java, this book, or both but I have more of a grin programming during learning from this book than ever before! Obviously it brings out the hidden geek in me!

I would say that anyone with some programming experience would find this book excellent. those with very little or none would probably find it hard - however still the best I've seen! What this book is NOT is a reference text - it's aim, basically, is a tutorial and thus precludes it's use as reference.

Have fun!

Comment | 
Was this review helpful to you?
4 of 4 people found the following review helpful
2.0 out of 5 stars Not everyone's cup of tea. 11 Feb 2011
Format:Paperback
Hi, I bought this book a month ago. I must say although the book is well written, I personally find it too much flowery/fussy (If you get what I mean)...instead of just focusing on the core of the subject (Java), they put in too much analogy (a bit silly sometimes) and pictures that it get's somebody more confused. I felt very stupid using the book, sometimes you don't know if the words they are using are analogy or actually a part of the java commands/keywords. I prefer a more technical book with a proper explanation. I actually find the online tutorials of Sun more informative, and less fussy. Just my two cents/pence.
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Most Recent Customer Reviews
5.0 out of 5 stars Excellent!
I was not a beginner at Java when I bought this book, yet it describes things very clearly whilst going into some technical detail so that you can really understand the why and how... Read more
Published 3 days ago by A. Taylor
5.0 out of 5 stars Brilliant book
This is a brief review from a Java newbie just to say how much I liked, and learned from, this book. Read more
Published 2 months ago by B. J. Glover
5.0 out of 5 stars Very very good book
If you want to learn java the easy way, then this is the book for you. Although I won't recommend it for people with programming skills because it will be too basic.
Published 2 months ago by Simone
4.0 out of 5 stars Worked for me
I have spent a fair few hours with this book now. I come from a programming background including Java from many years ago. I was challenged to teach java to high school students. Read more
Published 3 months ago by G. O'Neill
5.0 out of 5 stars thks
this is a very good and usefull item I recommend it to all the buyer and
happy new year r
Published 4 months ago by resul
5.0 out of 5 stars Review
This book is exceptionally good for beginners in Object Oriented Programming.
I would recommend the Head First Design Patterns book as a followup.
Published 5 months ago by Daniel Rocha
1.0 out of 5 stars Avoid Kindle edition
The content of this book looks like it would be very useful. Unfortunately vast chunks of it (parts which include code - so pretty essential to the learning process) are totally... Read more
Published 5 months ago by crash
4.0 out of 5 stars entertainment AND learning - what's not to like?
I decided to learn java as a 'hobby', and got a previous version of this book from the library to see how I went. Read more
Published 9 months ago by Franca
5.0 out of 5 stars Well explained, engaging and plenty of examples!
I started using the book recently as I have had to learn Java for my upcoming work. Although Java is quite a different language from what I am used to, Head First Java used good... Read more
Published 9 months ago by IfGodGivesYouLemons
5.0 out of 5 stars This book is brilliant!
Bought this book as a learning booster for object oriented programming. The style of the book is brilliant! It keeps me interested when reading! Read more
Published 9 months ago by Benisjammin208
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   
Related forums


Listmania!


Look for similar items by category


Feedback


Amazon.co.uk Privacy Statement Amazon.co.uk Delivery Information Amazon.co.uk Returns & Exchanges