What Have You Learned?

You’ve already finished one more chapter. Welcome to the next level!

Now you know how to deal with magic numbers, and you can replace them with constants or enums as the situation requires. You’re able to implement iteration in the way that best fits your needs, and you’ll stay clear of exceptions or performance pitfalls while you’re at it. You know how to format your code in a readable way, and you’ve seen how the Java API can help you to make it more concise and efficient.

That last part’s important, and the learning doesn’t stop here. The Java API is huge—really huge. In Java 9, there are more than 4,000 public API classes alone. Each one of these has a purpose that can help you. We don’t recommend that you go through ...

Get Java By Comparison now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.