Java for the Real World
Java for the Real World
About the Book
Video course now available! I have created a course on Udemy based on the curriculum of this book. The content is mostly the same, but if you purchase the book, you will have access to a 50% off coupon code for the video course. It's a great way to solidify your understanding as I go through each technology interactively using the code examples in the book.
-----
When I started my first Java job, I was immediately overwhelmed by my knowledge gaps of the Java ecosystem. I knew how to write decent code and had a good understanding of the Java language, but I had never used Hibernate or "deployed a war to Tomcat"...and what's a "pom"? I soon found that answers to these questions were less than straightforward. Wading through pages of dense documentation and poorly written tutorials often left me just as confused as when I started.
That's why I decided to write Java for the Real World. Having lived through the pain of learning the Java ecosystem, I wanted to create a resource for anyone else in their first Java job to quickly become aware of all the ancillary technologies that Java uses. I intentionally do not provide deep tutorials in the book. Not only would that be an insurmountable task (nearly all of these technologies have books of their own), but I have found that companies use the tools in such different ways that tutorials only go so far. Instead, I provide an overview of the most common tools you are likely to encounter, example code to see the technology in action, and suggested resources for more in-depth study.
Starting a new job is stressful enough, why make it worse by losing yourself in a sea on new words and tools? Java for the Real World is a practical and candid book that can be your guide to vast world of professional Java development.
Updated September 2018:
- All the code updated for Java 11
- A new project for Vaadin Flow
- Expanded discussion on the different JDK versions
Table of Contents
- Introduction
-
Chapter 1: Getting Started
- Who this book is for
- The video course
- How to use this book
- Setting up Your Workspace
-
Chapter 2: The Java Virtual Machine
- What is the Java Virtual Machine?
- JVM Versions
- JVM Varieties
-
Chapter 3: Build Tools
- Ant
- Maven
- Gradle
- Suggested Resources
-
Chapter 4: Testing
- Adding a Service to the IScream Application
- Writing Tests
- Running Tests
- Using Test Doubles
- Summary
- Suggested Resources
-
Chapter 5: Spring
- Spring Core
- Spring Boot
- Summary
- Suggested Resources
-
Chapter 6: Web Application Frameworks
- Java Enterprise Edition Web API
- Spring MVC
- Spring Boot
- JavaServer Faces
- Vaadin
- Summary
- Suggested Resources
-
Chapter 7: Web Application Deployment
- Packaging
- Deployment
- Embedded Servers
- Suggested Resources
-
Chapter 8: Working with Databases
- Java Database Connectivity (JDBC)
- Spring JDBC Template
- MyBatis
- Hibernate
- Summary
- Suggested Resources
-
Chapter 9: Logging
-
java.util.Logging
- Log4j
- Logback
- SLF4J
- Java Commons Logging (JCL)
- Summary
- Suggested Resources
-
-
Chapter 10: Useful Third-Party libraries
- JSON Support
- Utility Libraries
- Joda Time
- Summary
- Suggested Resources
-
Appendix A: Docker
- Building Docker images
- Deploying a Docker container
- Caveats
- Suggested Resources
- Notes
Other books by this author
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them