Java textbook
For those who prefer a textbook to help get started with Java, this is one of the best. Now in its ninth edition, it guides you step-by-step through the learning process. Throughout, there are self-tests and projects to try. Starting with the fundamentals of Java and object-oriented programming, the book introduces the reader to data types and operators, program control statements (such as loops and conditionals), and then classes, objects, and methods. After elaborating further on these, it moves on to cover inheritance, packages and interfaces, exception handling, and I/O. Advanced topics include multithreaded programming, generics, lambda expressions, and modules. The final chapter introduces the Swing GUI toolkit for Java. It should certainly give you a good grounding, after which you may want to check out the author’s *Java: The Complete Reference*.
Whenever you have a problem with your Java code, getting some advice from more experienced programmers and developers is invaluable. As with other programming languages, there are numerous online forums to help you out, including the trusty Stack Overflow and the official Oracle developers community. One of the most beginner-friendly forums can be found at the Coderanch. Despite the Wild West theme, it’s a hospitable place for newcomers, moderated by volunteer marshals and sheriffs. There’s even a Beginning Java subforum to help you get established. In addition, among the wide variety of topics covered on the site are book reviews, career advice, mobile, databases, caching, build tools, and frameworks. Hit the FAQs button at the top left to view a range of useful wiki articles.
Books for learning about Java
HEAD FIRST JAVA
Written in an entertaining style, this beginner’s book offers a seriously good introduction to object-oriented programming and Java. Short stories and puzzles help to keep you engaged. ► magpi.cc/headfirstjava
EFFECTIVE JAVA
Aimed at experienced Java developers seeking to improve their code, it explains 90 best practices to follow. These are organised into sections such as methods, generics, concurrency, and serialisation. ► magpi.cc/effectivejava
JAVA PUZZLERS
Even expert Java coders can get tripped up by oddities of the language. This book addresses common traps, pitfalls, and corner cases via a series of 95 puzzles to educate and entertain. ► javapuzzlers.com