Welcome to the forum! Please read this topic
to learn how to post code in code or highlight tags and other useful info for new members.
Catching up will occur naturally as you continue your studies beyond the book you currently have. Unless your book was written for a Java version before Java 1.4, it is still an important resource, and very little in the book (if any) will be obsolete. If the book was written for Java version 1.3 or previous, do yourself a favor and get a newer book. There are free ones available online that are more current.