Inheritance versus composition: How to choose
Tip

Inheritance versus composition: How to choose

Compare two fundamental ways to relate classes, then practice debugging ClassCastExceptions in Java inheritance

01/08/2020

Does Java pass by reference or pass by value?
Tip

Does Java pass by reference or pass by value?

You've probably heard before that Java passes by value, but what matters is how well you understand the concept and the code. In this Java Challenger, find out what happens when you pass an object reference to a method in Java

01/02/2020

Comparing Java objects with equals() and hashcode()
Tip

Comparing Java objects with equals() and hashcode()

What is the contract between equals() and hashcode()? Learn how these methods work together when comparing Java objects

08/22/2019

Polymorphism and inheritance in Java
Tip

Polymorphism and inheritance in Java

Challenge yourself, with this brain-teasing introduction to Java method invocation in polymorphic method calls

08/22/2019

Thread behavior in the JVM
Tip

Thread behavior in the JVM

The JVM does what it wants to do, so how can you predict the order of thread execution?

08/22/2019

String comparisons in Java
Tip

String comparisons in Java

How Java's String methods, keywords, and operators process comparisons in the String pool

08/22/2019

Sorting with Comparable and Comparator in Java
Tip

Sorting with Comparable and Comparator in Java

Comparable or Comparator? Choose the correct interface for the sorting algorithm you need

08/22/2019

Method overloading in the JVM
Tip

Method overloading in the JVM

Test your mind with the first Java Challenger in a new series. Can you outthink the Java virtual machine?

08/22/2019

Load More