Skip to main content

Practice

Contract Lab

intermediate~35 min of coding3 challenges

Build value classes with correct equals/hashCode, seal leaky APIs, and defeat the Integer-cache trap.

Checking your progress…0%

What you will practice

  1. Write the equals/hashCode Pairintermediate
  2. Find the Leaked Mutabilityintermediate
  3. Predict the Box Comparisonintermediate

Need the concept first? Re-read the lesson.