Learn AI, Data Science & Business — Earn Certificates That Get You Hired
NY State-Licensed Certificates in Design, Coding & AI — Online
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
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