The JVM does what it wants to do, so how can you predict the order of thread execution?
Compare inheritance and composition, the two fundamental ways to relate Java classes, then practice debugging ClassCastExceptions in Java inheritance.
Do you need to know how to sort Java objects in a collection, array, or map? Here's how to use the Comparable and Comparator interfaces and avoid ClassCastExceptions.
What is the contract between equals() and hashcode()? Learn how these methods work together when comparing objects in Java.
Java's Calendar class had its day, but the newer LocalDate class does much more. Here are seven ways to use LocalDate in your Java programs.
Copying objects is a common Java programming operation that has one serious trap. Here's how to avoid copying from an object reference and only copy the instance and values you want.
Abstract classes and interfaces in Java serve fundamentally different purposes. Learn the differences between these Java language elements and how to use them in your programs.
Maximizing code reuse in your Java programs means writing code that is easy to read, understand, and maintain. Here are eight ways to get started.
Sponsored Links