How to choose materials for java programming

The Java book on your shelf that you never finished is not evidence that you are bad at studying. It is evidence that the book was aimed at a reader with a compiler open and a reason to look things up, not at someone reading cover to cover on a sofa. Choosing materials for Java is mostly a matter of matching the format to the job it actually does well.

Use the documentation as the spine

The official Java API docs are dry, exhaustive, and free. They are also the only source that stays true as the language changes. Treat them as the reference you go to for a specific question: what a class does, what its methods take, what they return. Learning to read the docs is itself a skill worth having, and it is the one that keeps working after every tutorial you own has gone stale.

Start with the pages for a handful of classes you will use constantly: strings, lists, maps, and file reading. Skim the method list rather than reading the prose, and notice how much of it you can guess from the names.

Video orients; it rarely teaches

A video is excellent for showing what a working setup looks like, or for giving a shape to a topic you have never met. It is poor at teaching you to write code, because watching someone type is not the same as typing, and because you cannot easily go back to the exact line you need at the speed you need it.

Use video for the first hour of a new topic and then close it. If a course has exercises, do the exercises before watching the solution. If it has none, the course is entertainment.

A book earns its place through exercises

The test for any Java book is simple: does it make you write programs, and does it give you answers you can check? A book with no exercises is a reference work, and should be shelved as one. A book with exercises but no answers is a source of quiet frustration.

A good beginner text will get you through variables, control flow, methods, and collections, and will show you complete small programs rather than fragments. It will also tell you which version of Java it targets, because a book written for an older version may teach idioms that have since been replaced.

How to tell a resource is outdated

Two-minute check, before you invest an evening: look at the date on the page or the version number in the title, and look for the words that date a tutorial. If it installs an ancient JDK, talks about applets, or uses Vector as a normal collection, close it.

  • Prefer resources that state a Java version and were updated within the last few years.
  • Prefer text you can search and copy over video you have to scrub.
  • Prefer one resource at a time; three half-finished courses is a worse curriculum than one finished book.
  • Prefer anything that ends with a program you built yourself.

Whatever you choose, the real material is the code you write. A mediocre book with its exercises completed will teach you more than an excellent book read passively, and that is the only comparison that matters.