Java Exception Handling Cheat Sheet

Java Exception Handling Cheat Sheet

Overview While preparing for the OCP 17 exam, I created some notes to aid my learning. This is the first of many posts in this series. I hope you find it helpful. Java Exception Handling Cheat Sheet The Throwable family Checked vs. unchecked exceptions Overriding methods with declared exceptions Example RuntimeException Checked exceptions Error Exception … Read more

Java equals and hashCode Tutorial

Java equals and hashCode Tutorial

Overview This tutorial shows you what equals and hashCode are and how to properly override them. If you have written in Java long enough, you will learn that using the equals method instead of == is the right way to assert equality. This is because the == operator compares the two objects’ memory addresses. The … Read more