Skip to Content
Head First Java, 3rd Edition
book

Head First Java, 3rd Edition

by Kathy Sierra, Bert Bates, Trisha Gee
May 2022
Beginner
754 pages
21h 51m
English
O'Reilly Media, Inc.
Book available
Content preview from Head First Java, 3rd Edition

Appendix B. The top ten-ish topics that didn’t make it into the rest of the book...

image

We covered a lot of ground, and you’re almost finished with this book. We’ll miss you, but before we let you go, we wouldn’t feel right about sending you out into JavaLand without a little more preparation. We can’t possibly fit everything you’ll need to know into this relatively small appendix. Actually, we did originally include everything you need to know about Java (not already covered by the other chapters), by reducing the type point size to .00003. It all fit, but nobody could read it. So, we threw most of it away, but kept the best bits for this Top Ten-ish appendix. Yep, there’s more than ten Really Useful Things that you still need to know.

This really is the end of the book. Except for the index (a must-read!).

#11 JShell (Java REPL)

Java 9+

Why do you care?

A REPL (Read Eval Print Loop) lets you run snippets of code without needing a full application or framework. It’s a great way to try out new features, experiment with new ideas, and get immediate feedback. We’ve put this right at the start of this appendix in case you want to use JShell to try out some of the features we’ll be talking about in the following pages.

Starting the REPL

JShell is a command-line tool that comes part of the JDK. If JAVA_HOME/bin is on your system’s path, you can just type “jshell” from the command ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Head First Java, 2nd Edition

Head First Java, 2nd Edition

Kathy Sierra, Bert Bates
Learning Java, 6th Edition

Learning Java, 6th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Java in a Nutshell, 7th Edition

Java in a Nutshell, 7th Edition

Benjamin J. Evans, David Flanagan

Publisher Resources

ISBN: 9781492091646Errata Page