Overview
Coursera Spring Sale
40% Off Coursera Plus Annual!
Grab it
Explore the intricacies of Comparators in Java and learn how to avoid common pitfalls in this 30-minute Devoxx conference talk. Delve into the reasons behind the "Comparison Method Violates Its General Contract!" exception and understand why it occurs intermittently. Examine the Comparator interface in detail and discover techniques for writing correct Comparators. Gain insights into utility methods introduced in Java 8 that simplify the creation of complex Comparators from simpler ones. Learn from Stuart Marks, a Principal Member of Technical Staff in the Java Platform Group at Oracle, as he shares his expertise on Collections, Lambda, and Streams, helping you develop sophisticated and error-free Comparators more efficiently.
Syllabus
Comparison Method Violates Its General Contract! (Part 2) by Stuart Marks
Taught by
Devoxx